A frictionless piston cylinder device contains 5kg of air at 200kPa and 25 degree C. The air is compressed slowly to a pressure of 700kPa in a process in which the heat transfer from the cylinder is managed so as to maintain a constant air temperature. Find the work done and heat transfered during this process.