A freight car and a passenger car leave from a and B at the same time and meet each other in four hours. It takes eight hours for the freight car to complete the whole journey, and how many hours for the passenger car to complete the whole journey?

A freight car and a passenger car leave from a and B at the same time and meet each other in four hours. It takes eight hours for the freight car to complete the whole journey, and how many hours for the passenger car to complete the whole journey?

If it takes x hours for a bus to complete the whole journey, there will be
(1/X+1/8)*4=1
1/X+1/8=1/4
1/X=1/8
X=8