2 A motorcyclist starts from rest at \(A\) and travels in a straight line until he comes to rest again at \(B\). The velocity of the motorcyclist \(t\) seconds after leaving \(A\) is \(v \mathrm {~m} \mathrm {~s} ^ { - 1 }\), where \(v = t - 0.01 t ^ { 2 }\). Find
- the time taken for the motorcyclist to travel from \(A\) to \(B\),
- the distance \(A B\).