Answer:
From points A and B, the distance between which is 1020 mi
The speed of one train was 10 mph greater than the speed of the other one
Let the Speed of first train is x
Speed of second train is x+ 10
Time = 5 hours
Distance = speed * time
Distance traveled by first train = x * 5= 5x
Distance traveled by second train = (x+10) * 5= 5x + 50
the trains had not met yet and were 170 mi apart.
the distance between A and B is 1020 mi, Distance traveled by two trains = 1020 - 170 = 850 miles
Distance traveled by first train + second train = 850
5x + 5x + 50 = 850
10x + 50 = 850
Subtract both sides by 50
10x = 800
x= 80
Speed of first train is 80 miles per hour
Speed of second train is 90 miles per hour