How much heat is absorbed by a 2966 kg granite boulder as energy from the sun causes its temperature to change from 3°C to 31°C? 1000 g = 1 kg

You must know the specific heat of the granite. If you have that in your problem then

q = mass granite x specific het granite x (Tfinal-Tinitial)
q = ?
mass boulder = 2966000
specific heat granite = ? you must have this.
Tfinal is given
Tinitial is given.