This problem is one that can be confusing if not tackled orderly. Let us have an example of a system of 2 equation:
3x + 5y = 13
4x + 7y = 18
Two trains move towards one another. The first one has a speed of 30 km/h, and the second one travels at 50 km/h. The initial distance between them is 160 km