The speed ratio of a and B is 4:5 when the two cars meet on the way. A car runs 30 kilometers less than B car What is the distance between the two places?

The speed ratio of a and B is 4:5 when the two cars meet on the way. A car runs 30 kilometers less than B car What is the distance between the two places?

Let the distance between the two places be X
When the two cars meet, car a goes x * 4 / (5 + 4) = 4x / 9
B car goes x * 5 / (5 + 4) = 5x / 9
5x/9-4x/9=x/9=30
X = 90 * 3 = 270 (km)
So the distance between the two places is 270 kilometers