A straight line of gradient m passes through the point (1,1) and cuts the x- and y- axes at A and B respectively. The point P lies on AB and is such that AP:PB = 1:2 .
Show that, as m varies, P moves on the curve whose equation is 3xy - x - 2y = 0.
So far, my working is as follows:
If the straight line passes through the point (1,1) , then the straight line should have the following equation:
$y = m(x-1) + 1$
which means that:
$A = (\frac{(m-1)}{m} , 0)$
$ B = (0, (-m +1))$
Therefore, the points of P should be:
X = $\frac{2(0) + 1(\frac{(m-1)}{m})}{3}$
Y = $\frac{2(m-1) + 1(0)}{3}$
Unfortunately, I'm not sure how to continue from here.
Thanks in advance for your assistance!

we have the coordinate of $$A(1-1/m,0)$$ and $$B(0,1-m)$$ from $$2AP=BP$$ we get after squaring $$4((x-1+1/m)^2+y^2)=x^2+(y-1+m)^2$$ plugging $$m=\frac{y-1}{x-1}$$ we get $$4\, \left( x-1+{\frac {x-1}{y-1}} \right) ^{2}+4\,{y}^{2}-{x}^{2}- \left( y-1+{\frac {y-1}{x-1}} \right) ^{2} =0$$ simplifying and facrotzing we get $$\left( 3\,yx-x-2\,y \right) \left( yx+x-2\,y \right) \left( {x}^{2} +{y}^{2}-2\,x-2\,y+2 \right) =0$$ and one factor is your equation!