The distance from to is covered 3 hours and 12 minutes faster by a passenger train compared to a freight train. In the time it takes the freight train to travel from to , the passenger train covers 288 km more. If the speed of each train is increased by , the passenger train will cover the distance from to 2 hours and 24 minutes faster than the freight train. Determine the distance from to .