Well let P = (x,y)
And now do the distance formula of PA and make it equal to PB
Now square both sides to get rid of the square root signs and bring it all to one side for general equation of a straight line.
For a Locus of P when PA is double the distance of PB ( PA=2PB) when you square...