A and B start from two places 1000 meters apart at the same time and walk toward each other. A travels 4 kilometers per hour, and B travels 6 kilometers per hour. A takes a dog. The dog and A start at the same time, and the dog travels 10 kilometers per hour. , when it meets B, it turns around and runs towards A, and when it meets A, it runs towards B again... until the two meet, how many kilometers did the dog run in total?
甲乙两人同时从相距1000米两地出发相向而行，甲每小时行4千米，乙每小时行6千米，甲带一只狗，狗和甲同时出发，狗每小时行10千米，碰到乙的时候，它就掉头朝甲这边跑，碰到甲又往乙那边跑…一直到两人相遇为止，这只狗共跑了多少千米？
<gadget id="calculator">6 + 4</gadget>
<output>10</output>

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

<result>100</result>