A and B start from both places A and B on foot at the same time. If you walk towards each other, you will meet in 0.5 hours. At this time, the ratio of distance traveled by A and B is 7:5. If they go in the same direction. So how many hours does it take for A to catch up with B?
甲、乙两人步行从A、B两地同时出发．如果相向而行，0.5小时相遇．此时甲、乙所行路程比是7：5．如果他们同向而行．那么甲追上乙需几小时？
<gadget id="calculator">7 + 5</gadget>
<output>12</output>

<gadget id="calculator">7 - 5</gadget>
<output>2</output>

<gadget id="calculator">0.5 / 2</gadget>
<output>0.25</output>

<gadget id="calculator">12 * 0.25</gadget>
<output>3</output>

<result>3</result>