Car A starts from rest at t = 0 and travels along a straight road with a constant acceleration of 6 ft/s2 until it reaches a speed of 80 ft/s. Afterwards it maintains this speed. Also, when t = 0, car B located 6000 ft down the road is traveling towards A at a constant speed of 60 ft/s. Determine the distance traveled by car A when they pass each other.