when the temperature of an isolated system decreases while the surroundings of a non-isolated system gains heat.