A particle $P$ of mass $m\,\mathrm{kg}$ falls vertically under gravity from rest. At time $t\,\mathrm{s}$, $P$ has fallen $x\,\mathrm{m}$ and has velocity $v\,\mathrm{m\,s^{-1}}$. The only forces acting on $P$ are its weight and a resistance of magnitude $kmgv\,\mathrm{N}$, where $k$ is a constant.
(a) Find an expression for $v$ in terms of $t$, $g$ and $k$. [5]
(b) Given that $k=0.05$, find, in metres, how far $P$ has fallen when its speed is $12\,\mathrm{m\,s^{-1}}$. [5]