A ladder AB of length 2a and weight w is inclined to a smooth horizontal ground(A) at an angle $\theta$ and rests against a smooth vertical wall(B). The centre of gravity G of the ladder is $\frac{3}{8}$ of the way up . The middle of the ladder, O,is tied to a point in the vertical wall by a horizontal rope of length l. The reactions at A and B are R and S respectively.
Show that tension in the rope is $\frac{3wl}{4\sqrt{a^2-l^2}}$.
I have obtained $\cos(\theta)$=$\frac{l}{a}$ ; $\sin(\theta)$= $\frac{\sqrt{a^2-l^2}}{a}$ ; $\tan(\theta)$ = $\frac{\sqrt{a^2-l^2}}{l}$