The equation that relates temperature change and heat is as follows:
[tex]Q=mc\Delta T[/tex]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.
[tex]\Delta T=T_f-T_i[/tex]The specific heat capacity is given:
[tex]c=4.2J/(g\degree C)[/tex]And the mass is also given:
[tex]m=25g[/tex]And the initial temperature is 30°C and the final is 33°C, so:
[tex]\Delta T=33\degree C-30\degree C=3\degree C[/tex]So, putting altogether, we have:
[tex]\begin{gathered} Q=25g\cdot4.2J/(g\degree C)\cdot3\degree C \\ Q=25\cdot4.2\cdot3\; J \\ Q=315\; J \end{gathered}[/tex]So, we need 315 J of energy.