Carbon dioxide in a piston-cylinder device is initially contained at a pressure of 150 kPa and a volume of 15 litres. It is compressed slowly to 10 litres in a polytropic process with n=2 then compressed further to 5 litres in a second polytropic process in which n=1.5. Find the total work done on the carbon dioxide.