It will take B 8 hours to travel in order to overtake A.
The relationship among the distance, time and speed can be expressed by using the relation.

In this kind of ratio relation, it is pertinent to understand that, the rise in a variable cause a decrease in the other, where the third variable is constant.
Here:
- as speed (v) rises;
- time (t) decreases, and
- distance (d) is constant
From the given relation:
So, we can have a table expressing the parameters given in the question as follows:
v t d
A 4 t+2 4t + 8
B 5 t 5t
Equating both distance together, we have:
4t + 8 = 5t
collecting like terms, we have:
4t - 5t = -8
t = 8 hours
Therefore, we can conclude that it will take B 8 hours to travel in order to overtake A.
Learn more about distance, time and speed here:
brainly.com/question/12199398