How much energy must be removed to convert $8.49\ \mathrm{g}$ of water at $24.5\ ^{\circ}\mathrm{C}$ to an ice cube at $-12.0\ ^{\circ}\mathrm{C}$? Give your answer as a positive value in Joules since only positive energy can be removed. $$c_{\mathrm{water}} = 4.184\ \mathrm{J}\,\mathrm{g}^{-1}\,^{\circ}\mathrm{C}^{-1}$$ $$c_{\mathrm{ice}} = 2.03\ \mathrm{J}\,\mathrm{g}^{-1}\,^{\circ}\mathrm{C}^{-1}$$ $$\Delta H_{\mathrm{fusion, water}} = 6.01\ \mathrm{kJ}\,\mathrm{mol}^{-1}$$
O am just learning this material, and I'm struggling on what formula to use. Is it
$$q= n(H_{\mathrm{final}} - H_{\mathrm{initial}})$$