Initially you need to find the specific heat of the granite. It is found in tables.
With that data, you can apply the equation: Q = m * C * ΔT
Where:
m = 17 kg
ΔT = 45°C - 21°C = 24 °C
And, from a table the specific heat, C, of granite is 790 J/kg°C
Therefore, you get: 17 kg * 790 J/kg°C * (24°C) = 332,320
This answer is pretty close to the option A, and you can conclude that the difference is due a small difference in the specific heat used.
Answer: option A.