In a car race on straight road, car A takes a time t less than car B at the finishing point and passes the finishing point with a speed ′v′ more than that car B. Both the cars start from rest and travel with constant acceleration a1 and a2 respectively. Then v is equal to