I appreciate your help.
the above staement is an equation though isn't it? You are given:
\vec{AM}.\vec{MB} = 0 in the question.
using your sugested A=(a,b,c) B=(p,q,r) and M=(x,y,z) for the points isn't
\vec{AM} = (a-x, b-y, c-z)
\vec{BM} = (x-p, y-q, z-r)
Hence the inner...