Question 785353
Both trains moving toward each other means times equals total distance given.

22x + 50x = 378

Let x = the time it will take both trains to pass each other

You can finish now.