Please reason step by step, and put your final answer within \boxed{}.
a train requires 8 seconds to pass a pole while it requires 18 seconds to cross a stationary train which is 400 mtrs long . find the speed of the train .
user