Two trains leave stations 50 miles apart at the same time heading toward one another on parallel tracks.

Train A is traveling 20 miles an hour and Train B is traveling 30 miles an hour.
They pass eachother in how many hour(s).

The two trains together cover 50 miles every hour.

So, starting 50 miles apart, ...

To find out how many hours it takes for the trains to pass each other, we can use the concept of relative velocity.

The relative velocity is the combined speed at which the trains are approaching each other. In this case, Train A is traveling at 20 miles per hour, and Train B is traveling at 30 miles per hour. Since they are heading toward each other, we can add their speeds to get the relative velocity.

Relative velocity = Speed of Train A + Speed of Train B
Relative velocity = 20 mph + 30 mph = 50 mph

Now, we need to calculate the time it takes for the two trains to cover the 50-mile distance between them using the relative velocity. We can use the formula:

Time = Distance / Relative velocity

Plugging in the values:

Time = 50 miles / 50 mph = 1 hour

Therefore, the trains will pass each other in 1 hour.