Write a formula for distance from a point to a line. Then count a distance from point $P_1(1,2,4)$ to line $l$, along which intersects the two planes $x+y-2z=1$ and $x+3y-z=4$.
I did a matrix
$$ \left[ \begin{array}{ccc|c} 1&1&-2&1\\ 1&3&1&4\\ \end{array} \right] $$
then transformed it to $$ \left[ \begin{array}{ccc|c} 1&0&-3,5&-0,5\\ 0&1&1,5&1,5\\ \end{array} \right] $$
but completly don't know what to do next.