Let a general point on the locus of the dog be P(x, y). Then dPA = 2 dPB.

So get the distance dPA between P and A and the distance dPB between P and B. Then substitute .....

By the way, the locus is a Circle of Apollonius. Some sites that might interest:

Circles of Apollonius

The circle of Apollonius