Temperature versus pressure graph of an ideal gas is shown in the given figure. During the process AB,
T = constant
PV = constant (Boyle's law)
or
Pressure of the gas is increasing. Therefore, volume should decrease. Work done by the gas is negative or work done on the gasby the atmosphere is positive. Internal energy will remain constant.