Question
Question: Two masses m and M are attached with string, for the system to be in equilibrium we have 
Solution
First we will draw a rough diagram and represent each body in its free body diagram. Then resolve each tensile force. Then equate summation of each coordinate to zero for each of the masses. On further solving we can find the angle at which mass M is attached.
Complete step by step answer:
As per the problem we have two masses m and M are attached with string, for the system to be in equilibrium.
We have to now calculate the angle θ as shown in the figure.

Free body diagram of mass m,

Now from the figure on resoling along the y coordinate we will get,
∑Fy=0
Now we can write,
T2sin45∘+T1sin45∘−mg=0
On further solving we will get,
2T2+2T1=mg
⇒T2+T1=2mg……(1)
Now from the figure on resoling along the y coordinate we will get,
∑Fx=0
Now we can write,
T1cos45∘−T2cos45∘=0
On further solving we will get,
2T2=2T1
⇒T2=T1……(2)
Now putting equation (1) in place of equation (2) we will get,
T1+T1=2mg
⇒2T1=2mg=2mg
Free body diagram of mass M,

Now from the figure on resoling along the y coordinate we will get,
∑Fy=0
Now we can write,
T3sinθ−(T1sin45∘+Mg)=0
On further solving we will get,
T3sinθ=(2T1+Mg)……(3)
Now from the figure on resoling along the y coordinate we will get,
∑Fx=0
Now we can write,
T3cosθ−T1cos45∘=0
On further solving we will get,
T3cosθ=T1cos45∘
⇒T3cosθ=2T1……(4)
Taking the ratio of equation (3) to (4) we will get,
T3cosθT3sinθ=2T1(2T1+Mg)
Cancelling the common term we will get,
tanθ=2T1(2T1+Mg)
Putting the value of T1 in the above equation we will get,
tanθ=2mg(2mg+Mg)
Cancelling the common term we will get,
tanθ=1+m2M
Note: Here we have used the free body diagram to solve the problem. Remember that the free body diagram is usually associated with the motion of a free body which is a pictorial device used by the physicist and the engineers so as to solve the problem easily and to analyze the problem.
