The point we have chosen is stationary and massless. So according to Newton's 2nd in the x-direction:
So we know that . I'm just simply going to refer to this as "T" from now on.
In the y-direction we have:
I'll let you pick up the rest.