Let
be the speed of train A, and let's set the origin in the initial position of train A. The equations of motion are
![\begin{cases}s_A(t) = vt\\s_B(t) = -(8)/(7)vt+450\end{cases}](https://img.qammunity.org/2020/formulas/mathematics/middle-school/hd2ihqjt158jh8n37bih539723jyem4d5j.png)
where
are the positions of trains A and B respectively, and t is the time in hours.
The two trains meet if and only if
, and we know that this happens after two hours, i.e. at
![t=2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/pfezyk39eabdl2s267ysugpprccny3dymf.png)
![\begin{cases}s_A(2) = 2v\\s_B(2) = -(16)/(7)v+450\end{cases}\implies 2v = -(16)/(7)v+450](https://img.qammunity.org/2020/formulas/mathematics/middle-school/zg85jy5csxh3bvc4nb02pdwf3rfeayr6nt.png)
Solving this equation for v we have
![2v = -(16)/(7)v+450 \iff (30)/(7)v=450 \iff v=(450\cdot 7)/(30) = 105](https://img.qammunity.org/2020/formulas/mathematics/middle-school/tg3l2m2qalvco6i5uvq41ik0je3jt07v9y.png)
So, train A is travelling at 105 km/h. This implies that train B travels at
![105\cdot (8)/(7) = 15\cdot 8=120 \text{ km/h}](https://img.qammunity.org/2020/formulas/mathematics/middle-school/nuukzm2ieoao0yp1x0xoivpy20b90nbdw5.png)