Two train each of length 50m are running with constant speeds on parallel tracks while moving in same direction one over takes the other in 40 seconds and while moving in opposite direction one crosses the other in 20 seconds. The speeds of trains will be