the process is adiabatic; for B