A mass M is suspended by a rope from a rigid support at A as shown in figure. Another rope is tied at the end B, and it is pulled horizontally with a force. If the rope AB makes an angle θ with the vertical in equilibrium then the tension in the string AB is