Answer:
John is traveling 5 mph
Trey is traveling 12 mph
Explanation:
we will concept of speed distance and time where
distance = speed * time
Let the speed of john be x miles per hour
if, Trey travels 7 mph faster than John
then speed of trey = (x+7) miles per hour
Time of travel for both of them = 5 hours
distance traveled by john in 5 hours = x* 5 = 5x miles
distance traveled by john in 5 hours = (x+7) * 5 = (5x + 35)miles
total distance covered by them = 5x miles + (5x + 35)miles = (10x+35) miles
it is given that after 5 hours they were 85 miles apart, thus the distance above calculated should be equal to 85 miles
10x+35 = 85
=>10x = 85 -35
=> 10x = 50
=> x = 50/10
=> x = 5
Thus, speed of john is 5 miles per hour
speed of Trey is: x+7= 5 + 7 = 12 miles per hour