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