car a is 40 miles behind car b , which is traveling in the same direction along the same route as car a . car a is traveling at a constant speed of 58 miles per hour and car bis traveling at a constant speed of 50 miles per hour . how many hours will it take for car a to overtake and drive 8 miles ahead of car b ?
"relative speed of car a is 58 - 50 = 8 miles per hour , to catch up 40 miles and drive 8 miles ahead so to drive 48 miles it ' ll need 48 / 8 = 6 hours . answer : b"
divide(add(40, 8), subtract(58, 50))