when heat energy is supplied to a material it can raise the temperature of mass of the material.
Specific heat is the amount of energy required by 1 g of material to raise the temperature by 1 °C.
equation is
H = mcΔt
H - heat energy
m - mass of material
c - specific heat of the material
Δt - change in temperature
substituting the values in the equation
120 J = 10 g x c x 5 °C
c = 2.4 Jg⁻¹°C⁻¹