Figure shows two blocks A and B connected to an ideal pulley string system. In this system when bodies are released then: (neglect friction and take g = 10 )
Applying NLM on 40 kg block
400 - 4 T = 40a
For 10 kg block T = 10.4a
Solving a = 2
T = 80 N