The formula for calculating heat is Q=mCpdT
Q means the heat loss, m is for the mass, Cp is for the specific heat, dT is for the temperature change.
Since we are asked for the temperature change of the milk than we are going to find dT. Substituting the given to the equation:
30000 J=(390 g)*(3.9 J/g-C)*dT
dT= 19.72 C
Therefore, the temperature change of the milk is 19.72 degrees Celsius.