A system undergoes a change of state during which 80kJ of heat is transferred to it and it does 60kJ of work. The system is brought back to its original state through a process during which 100kJ of heat is transferred to it. The work done by the system is
(a) 40kJ (b) 60kJ (c) 120kJ (d) 180kJ