A boy and his dog are out for a morning excursion to the river, whichis located 4.0 km away. The boy walks briskly at 2.0 m/s in a straight line. The dog isunleashed and runs back and forth at 4.5 m/s between the boy and the river, until bothreach the river. What is the distance run by the dog?