Total distance between the trains = 348 miles
Total time to cross that distance by trains = 3 h.
So, sum of their speed would be: 348/3 = 116
A.T.Q,
Speed of train 1 - speed of train 2 = 22
so, two equation that has formed are:
a+b=116
a-b=22, a=b+22
Substitute that in above equation; b+22+b=116
2b= 94, b=47 & a=116-47 =69
Speed of the TRAIN IS 47 & 69 miles per hour.
Did you understand?