Recall your d = rt, distance = rate * time
so... one train goes west and the goes the opposite way... alrite... so... notice, by the time 338 miles have been covered by both, it will have been "t" hours, and whatever "t" is, is the same amount of time the westbound train has been running as well as the eastbound train has been running.
now, let's say, since by "t" hours they've covered 338 altogether, so, if the westbound train has covered say "d" miles, then the eastbound train would have covered the slack from 338 and d, that is, "338 - d".

so, 2hours and 36 minutes.
5 is the answer to the promblem
D. 7
e. 4
f. 5
g. 11
Get these by adding/subtracting the number at the end (use the opposite operation) and then divide the coefficient from both sides.