A car travels at 108 kph from A to B for t seconds, applies the brakes for 4 seconds between B and C to give the car a constant deceleration and a speed of 72 kph at C, and finally travels at this speed from C to D, also for t seconds. If the total horizontal distance from A to D is 3100 m, determine the distance between A and B.