\[ C_6H_5OCH_3 + Br_2 \;\xrightarrow[\text{}]{CH_3COOH}\; o\text{-}BrC_6H_4OCH_3 + p\text{-}BrC_6H_4OCH_3 \]
\[ CH_3COONa + NaOH \;\xrightarrow[\Delta]{CaO}\; CH_4 + Na_2CO_3 \]
(i) Anisole gives ortho- and para-bromoanisole.
(ii) Sodium acetate with soda lime gives methane (decarboxylation reaction).
The major product (A) formed in the following reaction sequence is

In the following substitution reaction: