Two people, A and B, ride towards each other from two places at the same time. A travels 20 kilometers per hour, and B travels 18 kilometers per hour. When the two met, they were 8 kilometers away from the midpoint of the journey. How many hours did the two meet? How many kilometers is the whole journey?
甲乙两人同时分别从两地骑车相向而行，甲每小时行20千米，乙每小时行18千米．两人相遇时距全程中点8千米．问几个小时两人相遇？全程长多少千米？
<gadget id="calculator">20 + 18</gadget>
<output>38</output>

<gadget id="calculator">20 - 18</gadget>
<output>2</output>

<gadget id="calculator">2 / 2</gadget>
<output>1</output>

<gadget id="calculator">38 * 8 * 1</gadget>
<output>304</output>

<result>304</result>