An ideal gas expands at a constant total pressure of 3.0 atm from 410mL to 790mL . 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. Calculate the total heat flow into the gas.