Car A travels from Dongcheng to Xicheng, traveling 18 kilometers per hour, and car B travels from Xicheng to Dongcheng, traveling at 16 kilometers per hour. Car A departs one hour later than car B, and they happen to meet at the midpoint of the two cities. How many kilometers are the two cities apart?
甲车由东城行向西城，每小时行18千米，乙车由西城走向东城，每小时行16千米，甲车比乙车迟一小时出发，而他们恰好在两城中点处相遇．两城相距多少千米？
<gadget id="calculator">18 - 16</gadget>
<output>2</output>

<gadget id="calculator">16 / 2</gadget>
<output>8</output>

<gadget id="calculator">16 + 18</gadget>
<output>34</output>

<gadget id="calculator">8 * 34</gadget>
<output>272</output>

<gadget id="calculator">272 + 16</gadget>
<output>288</output>

<result>288</result>