A and B start from two places at the same time and walk towards each other with a distance of 100 km. A travels 6 kilometers per hour and B travels 4 kilometers per hour. A takes a dog, and the dog runs 35 kilometers per hour. The dog started with A, and when it met B, it turned around and ran towards A, and when it met A, it ran towards B again until the two met. How many kilometers did the dog run in total?
甲、乙两人同时从两地出发，相向而行，距离是100千米．甲每小时行6千米，乙每小时行4千米．甲带着一只狗，狗每小时跑35千米．这只狗同甲一道出发，碰到乙的时候，它就掉头朝甲这边跑，碰到甲时又往乙那边跑，直到两人相遇．这只狗一共跑了多少千米．
<gadget id="calculator">6 + 4</gadget>
<output>10</output>

<gadget id="calculator">100 / 10</gadget>
<output>10</output>

<gadget id="calculator">35 * 10</gadget>
<output>350</output>

<result>350</result>