Two trains take 3 second to pass one another when going in opposite directions but only 2.5 second if the speed of one is increased by 50% . The time one would take to pass the other when going in the same direction at the original speed is:
Let speeds and lengths be v1, v2, and l1 l2.
By solving above equations,
and
Required time =