
Patrick B. answered 10/06/20
Math and computer tutor/teacher
x is the speed of Train A
Train A travels 2x
Train B travels 2(x+5) = 2x+10
Pythagorean says: (2x)^2 + (2x+10)^2 = 2500
4x^2 + 4x^2 + 40x + 100 = 2500
8x^2 + 40x - 2400 = 0
x^2 + 5x - 300 = 0
( x + 20)(x - 15 ) = 0
x+20=0 results in negative measures
x-15=0 --> x = 15
The speeds are 15 and 20