Consider the system shown in fig. The pulley and the string are light and all the surfaces are frictionless. The tension in the string is (take g = 10 m/s2)
See fig.
From figure, 1g -T = 1 a and T = 1 a
From eqs. (1) and (2), we get
1g-1,a=1a or 2a=g
So, T=ma=1x 5=5N.