Let the coordinates of A be (x,0) and B be (0,y)
We know centroid of the triangle is the sum of the coordinates divided by 3
i.e. centroid =(x1+x2+x33,y1+y2+y33) where (x1,y1),(x2,y2),(x3,y3) are the coordinates of the
triangle therefore centroid of triangle AOB is (0+x+03,0+y+03) i.e (x3,y3) now given line AB passes through (3,2)
Now the equation of the line is Y−0=y−00−x(X−x)
Y(−x)=y(X−x)
in this equation if we substitute (3,2) in place of (X,Y) we get the equation
⇒2x+3y=xy
substituting 3x,3y in place of x,y we get the locus of the centroid
∴ The locus of the centroid is 2X+3Y=3XY