A system undergoes a change of state during which 100 kJ of heat is transferred to it and it does 50 kJ of work. The system is through back to its original state through a process during which 120 kJ of heat is transferred to it. What is the work done by the system?
(a) 50kJ (b) 70kJ (c) 120kJ (d) 170 kJ