(b)
When some activating group, $eg,\ - OH$ is present along with $–COOH$ is $ortho$ or $para$ position, substitution occurs with respect to $–OH$ preferably at $para$-position due to steric factors. In case the reagent used is strong, electrophile enters at all possible positions even with the replacement of $–COOH$ group