Based on the first law of thermodynamics, the energy gained by a system is equal to the energy lost by the surroundings.
The laws of thermodynamics can be summarised as follow
From the laws given above precisely the first law, we can conclude that the energy gained by a system is equal to the energy lost by the surroundings
Learn more about laws of thermodynamics:
https://brainly.com/question/3808473