Given the diagram below
If the train B travels 16 miles faster than train A, then:
[tex]\begin{gathered} SpeedA=x\text{ miles/h} \\ SpeedB=(x+16)\text{ miles/h} \end{gathered}[/tex]The distance covered by each train is given as:
[tex]\begin{gathered} distance=speed\times time \\ time=4hours \\ speedA=x \\ speedB=x+16 \end{gathered}[/tex][tex][/tex]