One mole of an ideal diatomic gas undergoes a transition from A to B along a path AB as shown in the figure