At time $t=0$ seconds, a particle $P$ is projected with speed $40\,\mathrm{m\,s^{-1}}$ at an angle $\theta$ above the horizontal from a point $O$ on a horizontal plane and moves freely under gravity. The greatest height achieved by $P$ during its flight is $H$ metres and the corresponding time is $T$ seconds.
(a) Obtain expressions for $H$ and $T$ in terms of $\theta$. [2]
During the time between $t=T$ and $t=3$, $P$ descends a distance $\frac14H$.
(b) Find the value of $\theta$. [4]
(c) Find the speed of $P$ when $t=3$. [3]