This question is describing the following chemical reaction at equilibrium:
And provides the relative amounts of both A and B at 25 °C and 75 °C, this means the equilibrium expressions and equilibrium constants can be written as:
Thus, by recalling the Van't Hoff's equation, we can write:
Hence, we solve for the enthalpy change as follows: