In this case, when you look out the window, you first see the rear of the other train, then you see the middle, then you see the front. In other words, the other train moves past your window from front to back. You feel like you are motionless while the other train appears to be moving backward.
Work Step by Step
The speed of the slower train to an observer on the faster train is perceived to be a negative velocity.