Using formula for co-ordinates of centroid of a triangle
The coordinates of the centroid of the triangle, whose vertices are
(x1,y1,z1),(x2,y2,z2) and (x3,y3,z3) are
(x1+x2+x33,y1+y2+y33,z1+z2+z33)
Given two vertices are A(2,4,6) and B(0,–2,–5)
Let the third vertex C(x,y,z)
∴ Centroid of △ABC,
G=(x+2+03,y+4−23,z+6−53)
⇒G=(x+23,y+23,z+13)
Simplifying using given coordinates of centroid
Given centroid is at origin
∴G(x+23,y+23,z+13)=G(0,0,0)
Comparing coordinates, we get
x+23=0⇒x=−2
y+23=0⇒y=−2
z+13=0⇒z=−1
Therefore, third vertex of the triangle is (–2,–2,–1)