
Daniel P. answered 11/04/15
Tutor
4.9
(68)
Harvard-Westlake and USC Grad - Math/C.S./Test Prep - (15 yr. EXP)
Lets call the first train distance TA and the second trains distance TB.
The distance between the 2 will be sqrt (TA2 + TB2 )
distance = rate * time.
So, TA = (r+5) * time = (r+5) * 2 = 2r + 10, TB = r * time = 2r
since the distance is 50, and distance = sqrt (TA2 + TB2 )
50 = sqrt (TA2 + TB2 )
50 = sqrt((2r+10)2 + (2r)2
50 = sqrt(4r2 + 40r + 100 + 4r2 )
50 = sqrt(8r2 + 40r + 100)
(square both sides)
2500 = 8r2 + 40r + 100
8r2 + 40r - 2400 = 0
8*(r + 20)(r-15) = 0
r = -20 and 15
speed is not negative, so train 1 is 20 km/hr and train 2 is 15km/hr