Given:
0x−2=2y=−1z+3 and 1x−1=−3y+3=1z+1
⇒0x−2=2y=−1z+3=k(let)
⇒x=2,y=2k,z=−k+3...(i)
Also, 1x−1=−3y+3=1z+1=λ(let)
⇒x=λ+1,y=−3λ−3.z=λ−1...(ii)
Using (i)and(ii),
⇒2=λ+1,2k=−3λ−3
⇒λ=1,2k=−3−3
⇒λ=1,k=−3
⇒x=2,y=−6,z=0
So, the intersection point of two given lines is (2,−6,0).

Now, we know that centroid G divides MR (median) in the ratio 1:2.
So, by using section formula, G≡(31×−1+2×2,31×4+2×1,31×2+2×2)
So, centroid is G(1,2,2).
Let A be the point of intersection of given lines.
⇒AG=(2−1)2+(2+6)2+(2−0)2
⇒AG=1+64+4
⇒AG=69