A train travels 240 kilometers in 2 hours, and it takes 9 hours to travel from Haicheng to Shancheng. According to this calculation, how many kilometers is the total length of the railway from Haicheng to Shancheng?
一列火车2小时行240千米，从海城到山城需要行驶9小时．照这样计算，海城到山城的铁路全长是多少千米．
<gadget id="calculator">240 / 2</gadget>
<output>120</output>

<gadget id="calculator">120 * 9</gadget>
<output>1_080</output>

<result>1_080</result>