Let the number of hours = X
Multiply the speed of each train by the number of hours (x) and add them together to equal the total miles:
75x + 95x = 238
Simplify:
170x = 238
Divide both sides by 170:
x = 238/170
x = 1.4 hours.
Check:
75 x 1.4 = 105 miles
95 x 1.4 = 133 miles
105 + 133 = 238 miles
It will take 1.4 hours ( 1 hour and 24 minutes).