Gender Studies homework help

In Fig. 9-47a, a 4.5 kg dog stands on an 18 kg flatboat at distance from the shore. It walks 2.4 m along the boat toward shore and then stops. Assuming no friction between the boat and the water, find how far the dog is then from the shore. (Hint: See Fig. 9-47b.)