A tank containing air is stirred by a paddle wheel. The work input to the paddle wheel is 9000 Kj and the heat transferred to the surrounding from the tank is 3000kJ. The external work done by the system is
(a) zero (b) 3000 kJ
(c) 6000kJ (d) 9000 kJ