Two cars, initially at a separation of 12 m, start simultaneously. First car A, starting from rest moves with an acceleration 2 m/s2 , whereas the car B, which is ahead, moves with a constant velocity 1 m/s, away from car A along the same direction. Find the time when car A overtakes car B.