Two unequal masses of 1 kg and 2 kg are attached at the two ends of a light inextensible string passing over a smooth pulley as shown in figure. If the system is released from rest, find the work done by tension on both 1 kg and 2 kg blocks in 1 s. (Take g=10 m/s2).