howdy!
"the total change in internal energy of a closed system is equal to the heat added to the system minus the work done by the system on its surroundings, and this change is also accompanied by an increase in the total entropy of the system and its surroundings."