mass = p + n
atomic number/mass are the same thing if i am wrong i am sorry look it up : )
thermal energy flow from one system to other due to temperature gradient
when temperature gradient occurs it will have flow of energy from one to other
so here we can say
a calorimeter uses the principle that thermal energy flows from hotter material to colder material until both reach the same temperature.