An ideal gas expands at a constant total pressure of 2.5 atm from 3.45 L to 6.70 L. Heat then flows out of the gas at constant volume, and the pressure and temperature are allowed to drop until the temperature reaches its original value. Calculate:
the total work done by the gas in the process
the total heat flow into the gas.