In a car race on a straight road, car A takes a time $t$ less than car B at the finish and passes the finishing point with a speed $v$ more than that of car B. Both the cars start from rest and travel with constant accelerations $a_1$ and $a_2$ respectively. Then $v$ is equal to