TQ 2-1
The displacement is the same, since both you and the dog have the same initial and final positions, but the distance traveled will be different: the dog will have longer distance traveled because of the side trips.