if we apply heat in a system it woks ifo two cases............................... one to change nits internal energy other t do work............ it follows the conservation of energy.................. it is the thermodynamics first law.......
if you like it please approve my answer...........