which of the following signs on q and w represent a system that is doing work on the surroundings, as well as losing heat to the surroundings?