Suppose two trains A and B are moving with uniform velocities along parallel tracks but in opposite directions. Let the velocity of train A be 40 km h-1 due east and that of train B be 40 km h-1 due west. Calculate the relative velocities of the trains.