There are two different types of systems, endothermic and exothermic. Endothermic reactions gain energy from the surroundings, with a net energy gain. Exothermic reactions loose energy to their surrounding , with a net energy loss.
Next we leaned about how to calculate heat using a formula that looks like M-Cat. m=CΔt allows you calculate change of heat, mass of sample, amount of heat, or temperature
.
c is specific for a certain material, for example c for water is 4.186, while the specific heat capacity for copper is .385.
More info
BBC
Chem Wiki
Hyper-physics