First, the carboxylic acid A will react with the TsOH (p-toluenesulfonic acid) to form an activated carboxylic acid intermediate. This is because TsOH is a strong acid and will protonate the carbonyl oxygen of the carboxylic acid.
$$\text{A} + \text{TsOH}
Show more…