Two bodies of masses 2 kg and 4 kg are tied to the ends of a massless string. The string passes over a pulley which is frictionless as shown in figure. If the system is released from rest, then tension in the string connecting the bodies will be (g=10 m/s2)