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 26 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 = 26 s = ( 27 x + 17 y ) / ( x + y ) = 26 = ( 27 x + 17 y ) / = 26 ( x + y ) = x = 9 y = x / y = 9 / 1 answer : b"
divide(subtract(27, 26), subtract(26, 17))