5 A particle \(P\) moves in a straight line. \(P\) starts from rest at \(O\) and travels to \(A\) where it comes to rest, taking 50 seconds. The speed of \(P\) at time \(t\) seconds after leaving \(O\) is \(v \mathrm {~m} \mathrm {~s} ^ { - 1 }\), where \(v\) is defined as follows.
$$\begin{aligned}
\text { For } 0 \leqslant t \leqslant 5 , & v = t - 0.1 t ^ { 2 }
\text { for } 5 \leqslant t \leqslant 45 , & v \text { is constant }
\text { for } 45 \leqslant t \leqslant 50 , & v = 9 t - 0.1 t ^ { 2 } - 200
\end{aligned}$$
- Find the distance travelled by \(P\) in the first 5 seconds.
- Find the total distance from \(O\) to \(A\), and deduce the average speed of \(P\) for the whole journey from \(O\) to \(A\).