a system gains heat from the surroundings and has work done on it by the surroundings. what are the signs of qsystem and wsystem?