find the work done by the gas in