A freight car and a passenger car set out from a and B at the same time. Four hours later, they met. The distance of freight car is 50 kilometers more than one third of the whole journey, and that of passenger car is 40 kilometers more than half of the whole journey. How many kilometers are there between a and B?

A freight car and a passenger car set out from a and B at the same time. Four hours later, they met. The distance of freight car is 50 kilometers more than one third of the whole journey, and that of passenger car is 40 kilometers more than half of the whole journey. How many kilometers are there between a and B?

1/2x1/3=1/6
40x1 / 3 = 40 / 3km
apart
(40+40/3+50)÷(1-1/6-1/2)
=310/3÷1/3
=310 km