In the figure given below a weight of 20 kg is suspended at one end of cord and a weight of 30 kg is suspended at other end of cord passing over a pulley. Neglecting the weight of rope and pulley, tension in cord will be:
A30 N
B20 N
C10 N
DNone of these