To understand this we have to understand what is Le Chatelier’s principle.
Le Chatelier’s principle states that if a dynamic equilibrium is disturbed by changing the conditions, the position of equilibrium shifts to counteract the change so as to reestablish an equilibrium.
So let’s apply Le Chatlier's principle to the above question.
So according to Le Chatelier’s principle, as the energy is releasing in the above mentioned process (exothermic process), by supplying energy to the system the process goes back, means from state B to state A. Here we supply the heat energy by increasing the temperature. So it proceeds in the reverse direction.