I haven't posted a solution for this question, so I guess, I should reply to any comments too. But after looking at ruby's solution. You understood everything except the simple mat...
this is the solution. important is process so always keep attention towards process( if process is apart from isothermal, isobaric, isochroic, adibatic)... hope u will get this.. b...