A woman and her dog are out for a morning run to the river, which is located 3.5 km away. The woman runs at 2.4 m/s in a straight line. The dog is unleashed and runs back and forth at 3.9 m/s between his owner and the river, until the woman reaches the river. What is the total distance run by the dog?