A thermodynamic system goes from state (i) (P,V) to (2P,V) and (ii) (P,V) to (P,2V). Work done in the two cases is