How many joules are required to raise the temperature of 500 g water by 24.0 C?
For this question you need to use the following formula
mass multiplied by specific heat of water multiplied by temperature change.
specific heat of water is 4.17 J per gram per C
Have a go at working it out.