You have to use the specific heat equation.
Q = cmΔT where Q is the energy, c is specific heat, m is mass, and ΔT is change in temp.
So we can substitute our variables into the equation.
30000J = (390g)(3.9J*g/C)ΔT
Solving for ΔT, we get:
30000J/[(390g)*(3.9J*g/C) = ΔT
ΔT = 19.72386588C
I'm assuming the temperature is C, since it was not specified.
Hope this helps!