A and B start from A and B at the same time, walk towards each other, and continue to move forward in the original direction after meeting. When A reaches B and B arrives at A, they both turn around and return. The second time the two met head-on was 24 kilometers away from the midpoint of A and B, so how many kilometers away from the midpoint of A and B were the place where the two met for the first time?
甲、乙两人同时从A、B两地出发，相向而行，相遇后继续按原方向前行，当甲到达B、乙到达A后均掉头返回．两人第二次迎面相遇在离A、B中点24千米处，那么两人第一次相遇地点离A、B中点多少千米？
<gadget id="calculator">2 / 3 / 2</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">24 * (1/3)</gadget>
<output>8</output>

<result>8</result>