We can use the heat equation,
Q = mcΔT
Where Q is the amount of energy transferred (J), m is the mass of the substance (kg), c is the specific heat (J g⁻¹ °C⁻¹) and ΔT is the temperature difference (°C).
Let's assume that the finale temperature is T.
Q = 1200 J
m = 36 g
c = 4.186 J/g °C
ΔT = (T - 22)
By applying the formula,
1200 J = 36 g x 4.186 J/g °C x (T - 22)
(T - 22) = 1200 J / (36 g x 4.186 J/g °C)
(T - 22) = 7.96 °C
T = (7.96 + 22) °C = 29.96 °C
T = 30 °C
Hence, the final temperature is 30 °C.