For first car P⟶ acceleration (aP)=ct,c is constant For second car Q⟶ acceleration (aQ)=a, a is constant Let analyze the problem in two case Case-I ⇒UQP and aQP in same direction
They cross 2 times in this case Case-II UPQ and aQP in opposite directions