Let
![w](https://img.qammunity.org/2019/formulas/mathematics/middle-school/wcrzr1gjy3dpkkn0k620yp9tk86uwo35fk.png)
be the speed of the westbound train,
![e](https://img.qammunity.org/2019/formulas/mathematics/middle-school/mnqmfxedoibfc4sbqx8wjkxww3lyy1rkcp.png)
eastbound
Westbound is 10mph faster than eastbound:
w = 10 + e
After two hours, they're 400 miles apart:
400 = 2w + 2e
Solving,
![e = w-10](https://img.qammunity.org/2019/formulas/mathematics/high-school/2kmius3easj5ehuuovbcimrmkp6auih9h5.png)
![400 = 2w + 2(w-10) = 2w + 2w -20](https://img.qammunity.org/2019/formulas/mathematics/high-school/s45gc4rnrq0r1ivjrri2dboimf9bu7c2eg.png)
![420 = 4w](https://img.qammunity.org/2019/formulas/mathematics/high-school/kgv8carbzgtgt9x1gz4l92monqqmk8hcr4.png)
![w=105](https://img.qammunity.org/2019/formulas/mathematics/high-school/4nexumcr6kqkntpdm9q3widb139f8v0hhf.png)
mph
That's the answer. That means the eastbound train is going 95 mph, so they're separating at 200 mph, so 400 miles apart after two hours. Check.