Salicyclic acid is treated with bromine under two different conditions.
Predict the nature of [X] and [Y] in the above reactions
Note that when some activating group, e.g, - OH is present along with COOH in ortho or para position substitution occurs with respect to -OH preferably at the para position due to steric factors. In case the reagent used is strong, the electrophile enters at all possible positions even with the replacement of - COOH group.