Gas in a container is at a pressure of 1.5 atm and a volume of 4 m3 . What is the work done by the gas if (a) it expands at constant pressure to twice its initial volume and (b) it is compressed at constant pressure to one quarter of its initial volume.