Question: how to calculate relative speed of two trains passing each other?
Answer: When two trains are going in the same direction, then their relative speed is the difference between the two speeds. When two trains are moving in the opposite direction, then their relative speed is the sum of the two speeds.