I attached a picture of the diagram associated with this question.
Now,
When we check the vertical components of the tension in the rope, we will find that we have two equal components acting upwards.
These two components support the weight and each of them has a value of TcosΘ
The net force acting on the body is zero.
Fnet=Force of tension acting upwards-Force due to weight acting downwards
0 = 2TcosΘ -W
W = 2TcosΘ
T = W / 2cosΘ