If $\dfrac{dy}{dt} = 2$ and $\dfrac{dt}{dx}=5$, then chain rule gives $\dfrac{dy}{dx}=2*5=10$.
However if we define $\dfrac{dy}{dt}=2$ to be the speed of a person in a moving train relative to train,
and $\dfrac{dt}{dx}=5$ to be the speed of train relative to ground, this gives speed of person relative to ground as $\dfrac{dy}{dx}=2+5=7$.
I feel I'm missing something.. Any help?