two trains pass each other on parallel track. the first is 180m and travel at 60k/m. the second is 120m and travel at 46k/h. calculate the total time taken to pass each other.

(a) if travelling on the same direction
(b) if travelling on opposite direction.

thanks....... expecting the answer plz

For same direction subtract two velocities (total distance is 300m)

For opposite, add them.
And don't forget to convert kph to m/s

To calculate the time taken for the two trains to pass each other, we need to consider their relative speed and the distance between them.

(a) If the trains are traveling in the same direction:
In this case, the relative speed is the difference between their speeds. The faster train will eventually catch up to and pass the slower train. The distance they need to cover is the sum of their lengths (180m + 120m = 300m).

1. Convert the speed of the faster train from km/h to m/s:
60 km/h = (60 * 1000) / 3600 = 16.67 m/s

2. Calculate the relative speed:
Relative speed = Speed of Faster Train - Speed of Slower Train
Relative speed = 16.67 m/s - 46 km/h = 16.67 m/s - (46 * 1000) / 3600 m/s = 16.67 m/s - 12.78 m/s = 3.89 m/s

3. Calculate the time taken to cover the distance:
Time = Distance / Relative speed
Time = 300m / 3.89 m/s ≈ 77.04 seconds

Therefore, the total time taken for the trains to pass each other when traveling in the same direction is approximately 77.04 seconds.

(b) If the trains are traveling in opposite directions:
In this case, the relative speed is the sum of their speeds. The trains will be moving towards each other.

1. Convert the speeds of both trains from km/h to m/s:
Speed of Train 1 = 60 km/h = (60 * 1000) / 3600 = 16.67 m/s
Speed of Train 2 = 46 km/h = (46 * 1000) / 3600 = 12.78 m/s

2. Calculate the relative speed:
Relative speed = Speed of Train 1 + Speed of Train 2
Relative speed = 16.67 m/s + 12.78 m/s = 29.45 m/s

3. Calculate the time taken to cover the distance:
Time = Distance / Relative speed
Time = 300m / 29.45 m/s ≈ 10.18 seconds

Therefore, the total time taken for the trains to pass each other when traveling in opposite directions is approximately 10.18 seconds.

So, the answers to your questions are as follows:
(a) If the trains are traveling in the same direction, the total time taken to pass each other is approximately 77.04 seconds.
(b) If the trains are traveling in opposite directions, the total time taken to pass each other is approximately 10.18 seconds.