A freight train is 27 minutes late when it makes its usual trip between Town Aand Town B at an average speed of 56 km/h. For another trip between Town Aand Town B, the freight train is 42 minutes late when its average speed is54 km/h. What is the distance between Town A and Town B?

Is there an algebraic way to solve this