R−X→AgNO2Pmajor; R−X→AgCNQmajor.P and Q respectively.
R – NO2, R – NC
R – NO2, R – CN
R – ONO, R – NC
R – ONO, R – CN
AgNO2 and AgCN are covalent compounds.
When these reagents react with R - X, C - N bonds formed.
Thus R - NO2 & R - NC are major products respectively.