That is to say, truck speed: bus speed = 5: 7.
That is, at the same time, the distance traveled by trucks is 5/7 of that of buses. In other words, the remaining 42KM is 2/7 of the total length, so the total length is 42*7/2= 147KM.