5x10^3 moles of an ideal gas are held in a container of volume 0.0124 dm^3 and surrounded by a thermostat at 298K. The gas is allowed to double in volume against a constant external pressure of 1.0 atm. What is the work done by the gas and the heat absorbed from the thermostat?