car a is 10 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 10 miles and drive 8 miles ahead so to drive 18 miles it ' ll need 18 / 8 = 2.25 hours . answer : b"
divide(add(10, 8), subtract(58, 50))