
Chemically both sets equally possible. In Set – 1, the Br – atom is activated by electron withdrawing effect of – NO group. Therefore nucleophilic attack by CH3ONa followed by elimination of NaBr gives the desired ether.
Step 1:

In set – 2, nucleophilic attack by 4 – nitrosodium phenoxide ion on methyl bromide gives the desired ether.

Since alkyl halides (CH3Br) are more reactive than aryl halides in nucleophilic substitution reactions, therefore set – 2 reactants are preferred.