Diego and Elena are 2 miles apart and begin walking towards each other. Diego walks at a rate of 3.7 miles per hour and Elena walks 4.3 miles per hour. While they are walking, Elena's dog runs back and forth between the two of them, at a rate of 6 miles per hour. Assuming the dog does not lose any time in turning around, how far has the dog run by the time Diego and Elena reach each other?