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