Explanation:
reaction A is exothermic reaction as a substance is produced from two substances
and
reaction B is endothermic as two substances are formed from one complex structure