A small pebble is heated and placed in a foam cup calorimeter containing 25.0 mL of water at 23.0°C. The water reaches a maximum temperature of 24.2°C. How many joules of heat were released by the pebble? (The specific heat capacity of water is 4.18 J/g•°C and the density of water is 1.00 g/mL)

thanks could you help me with this last problem please?

A lead mass is heated and placed in a foam cup calorimeter containing 50.0 mL of water at 18.0°C. The water reaches a temperature of 20.0°C. How much heat was released by the lead? (The specific heat capacity of water is 4.18 J/g•°C and the density of water is 1.00 g/mL)