A train starts from station A with uniform acceleration a1 for some distance and then goes with uniform retardation a2 for some more distance to come to rest at station B. The distance between