Put them into vector components, so that you set one direction as positive, one direction as negative.
So a) asks us to put it into relative terms of train B. So we assign the direction of train B as positive (west). Now since train A is moving east at 13 m/s, we can say that it is travelling...