A particle $P$ of mass $m$ is attached to a light inextensible string of length $a$ fixed at $O$. It is held at $A$, where $OA$ makes an angle $\theta$ with the downward vertical and $\tan\theta=\tfrac34$. It is projected perpendicular to $OA$ upwards with speed $\sqrt{5ag}$. At $B$, where $\angle AOB=90^\circ$, the tension is $T$. Find $T$ in terms of $m$ and $g$. [5]