In the figure shown, find the tension in the string connecting the two bodies.
In the shown figure the tension in the horizontal cord is 30N. Find the weight of the body B.