two trains running in opposite directions cross a man standing on the platform in 27 seconds and 17 seconds respectively . if they cross each other in 22 seconds , what is the ratio of their speeds ?
let the speed of the trains be x and y respectively length of train 1 = 27 x length of train 2 = 17 y relative speed = x + y time taken to cross each other = 22 s = ( 27 x + 17 y ) / ( x + y ) = 22 = ( 27 x + 17 y ) / = 22 ( x + y ) = 5 x = 5 y = x / y = 5 / 5 = 1 / 1 i . e 1 : 1 answer : a
divide(subtract(27, 22), subtract(22, 17))