Let the segment be AB with A(p,0) on the x-axis and B(0,q) on the y-axis, and let R(h,k) divide AB in the ratio 1:2, so AR:RB=1:2.
The point dividing the segment joining (x1,y1) and (x2,y2) internally in the ratio m:n is
(m+nmx2+nx1,m+nmy2+ny1)
Here (x1,y1)=(p,0), (x2,y2)=(0,q), m=1 and n=2.
(1+21(0)+2(p),1+21(q)+2(0))=(h,k)
h=32p,k=3q
p=23h,q=3k
So the line cuts the x-axis at A(23h,0) and the y-axis at B(0,3k). By the intercept form,
23hx+3ky=1
3h2x+3ky=1
Multiply both sides by 3hk.
2kx+hy=3hk
Hence, the equation of the line is 2kx+hy=3hk.