where A and B are constants. The work done by the gas when the temperature changes from T1 to T2 with pressure remaining constant is