find the work done by the gas.