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 projected perpendicular to $OA$ upwards with speed $u$. The string becomes slack at $B$, where $\angle AOB=90^\circ$ and the speed is $\sqrt{4ag/5}$.
(a) Find $\sin\theta$. [2]
(b) Find the tension at $A$ in terms of $m$ and $g$. [5]