Two trains leave the same city at a right angle to each other and continue in straight lines. Train B travels 5 mph faster than train A. After two hours, they are 50 miles apart. Determine the speed of each
train.
Let A have speed 'a.' Remember distance is rate times time, and the Pythagorean theorem. We then have (2a)^2+(2(a+5))^2=50^2. a=15, so the other rate is 20.