The energy released or absorbed by the reaction is the difference between the potential energy of the products and the potential energy of the reactants.
Potential energy released or absorbed = potential energy of products - potential energy of reactants
Potential energy released or absorbed = 30 kJ - 4 kJ = 26 kJ
Therefore, the energy released or absorbed by the reaction is 26 kJ, which means option A is correct.