Phenol reacts with methyl chloroformate in the presence of NaOH to form product A. A reacts with Br2 to form product B. A and B respectively are: