The equation that relates temperature change and heat is as follows:
![Q=mc\Delta T](https://img.qammunity.org/2023/formulas/chemistry/college/tupuhfh0q3hc4crb5u9q9y9dk499stq4dd.png)
Where Q is the heat, m is the mass, c is the specific heat capacity and ΔT is the change in temperature (final temperature minus initial temperature.
![\Delta T=T_f-T_i](https://img.qammunity.org/2023/formulas/physics/college/exxpvy8bn6wv3i4v13g2ud7tuane34brbw.png)
The specific heat capacity is given:
![c=4.2J/(g\degree C)](https://img.qammunity.org/2023/formulas/chemistry/college/7nu8jdgcxh3n3ij8xzs3cvhum4cu25lb4b.png)
And the mass is also given:
![m=25g](https://img.qammunity.org/2023/formulas/chemistry/college/3mh6oxdg5s5b2zepsfwxwtjzobxxcwws7l.png)
And the initial temperature is 30°C and the final is 33°C, so:
![\Delta T=33\degree C-30\degree C=3\degree C](https://img.qammunity.org/2023/formulas/chemistry/college/362vk3fcop919l0w8oixpq74594rf8a4vy.png)
So, putting altogether, we have:
![\begin{gathered} Q=25g\cdot4.2J/(g\degree C)\cdot3\degree C \\ Q=25\cdot4.2\cdot3\; J \\ Q=315\; J \end{gathered}](https://img.qammunity.org/2023/formulas/chemistry/college/lc7incjhi9te517mzbzvwhljkg3clome5w.png)
So, we need 315 J of energy.