the work done by the gas in the process A→B is