The products A and B in the following reactions, respectively, are:
Show Hint
AgX reagents (where X can be NO$_2$ or CN) are often used for nucleophilic substitutions in organic synthesis to introduce nitro or cyano groups respectively.
AgNO$_2$ introduces a nitro group (NO$_2$) through a nucleophilic substitution reaction, replacing Br in the original compound. AgCN, used next, replaces the halide with a cyano group (CN), also through nucleophilic substitution.