An ideal gas expands at constant pressure of 5.0 atm. from 240 milliliters to 630 milliliters. 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 (in joules) done by the gas in the process.