first train leaves at 4 and meets with second at 10 so it traveled 6 hours
second train leaves at 6 and meets the first at 10 so it traveled 4 hours
6 hours ·rate of first = distance traveled until they meet
4 hours (rate of first +24) = distance traveled until they meet
Yet both trains traveled the same distance so
6 hours ·rate of first =4 hours (rate of first +24)
6 hours ·rate of first -4 hours ·rate of first= 24·4
2·rate of first=96
rate of first train =96/2=48 mph
rate of second train =48+24=72 mph