Heat flows into a gas in a piston and work is performed on the gas by its surroundings. The amount of work done is equal to the heat added. In this situation,