The ratio in which the sphere x2+y2+z2=504 divides the line segment AB joining the points A(12,-4,8) and (27,-9,18) is given by
2:3 externally
Let the ratio is λ:1 so the point on sphere is
27λ+12λ+1,−9λ−4λ+1,18λ+8λ+12
Also, (27λ+12λ+1)2+(−9λ−4λ+1)2+(18λ+8λ+1)2=504
∴λ=−23, So that the ratio is 2:3 externally.