A car, P, with a velocity of 30 m/sΒ is traveling in the same direction as…