an ideal gas is adiabatically taken from B and A