I will give an example. Point(2,3,1) and plane 9x+8y+7z=4.
The equation of the line from the point to the plane is r=(2,3,1)+t(9,8,7)
so for this line x=2+9t
y=3+8t
z=1+7t
Substitute these into equation of plane
9(2+9t)+8(3+8t)+7(1+7t)=4
49+194t=4 so t=-45/194
and r intersects the plane at the point (2,3,1)-45/194(9,8,7)=(-17/194,222/194,-121/194)
Now find the distance between (2,3,1) and the point just found using the formula sqrt((x1-x2)^2+(y1-y2)^2+(z1-z2)^2)