to solve the amount heat that was added or lost in the surrounding, use the formula:
q = m cp dt
where q is the heat
m is the mass of the substance
cp is the specific heat of the subtance
dt is the change in temperature ( t2 - t1 )
just substitute the given value