Please help me with this question, i have no idea how to answer it.

A motorcyclist M leaves a road junction at time t=0s. She accelerates at a rate of 3ms-2 for 8s and then maintains the speed she has reached. A car C leaves the same road junction as M at time t=os. The car accelerates from rest to 30ms-1 in 20s and then maintains the speed of 30ms-1. C passes M as they both pass a pedestrian.

Find the distance of the pedestrian from the road junction