Find the reading of the spring balance (mass less)
a = (40g - 10g)/50 = 30g/50 = 3g/5
40g - T = 40a
T = 40(10 - 30/5) = 160N