3.46 The path from $A$ to $B$ is traveled by a passenger train 3 hours and 12 minutes faster than by a freight train. In the time it takes the freight train to travel from $A$ to $B$, the passenger train travels 288 km more. If the speed of each train is increased by $10 \mathrm{km} / \mathrm{h}$, the passenger train will travel from $A$ to $B$ 2 hours and 24 minutes faster than the freight train. Determine the distance from $A$ to $B$.