Answer: Reaction A is endothermic, and reaction B is exothermic.
Step-by-step explanation:
Endothermic reaction is a reaction that absorb energy from its surrounding.
Reaction A :
input : 6H2O(l) + sunlight it absorbs sunlight
output : C6H12O6(aq) + 6O2(g)
Exothermic reaction is a reaction that releases energy to the surrounding.
Reaction B
input : 2H2(g) + O2(g)
output : 2H2O(g) + energy it releases heat energy so...yeah exothermic