Please find the question attached.

I started solving this by taking the first point as x1,y1,z1 and second one as x2,y2,z2

and so the distance between these points to B is *sqrt*14.

Although this method doesn't seem to be working. Any help/hint on how to proceed with this question will be much appreciated.