<s>[INST] Find the distance between the line and plane Find the distance between the line $x-z=3, x+2y+4z=6$ and the plane $3x+2y+2z=5$.
What I have done so far,
Found the vector by crossing $1,0-1$ and $1,2,4$ from the first line
The line is parallel to plane $\langle 2,-5,2\rangle \cdot \langle 3,2,2 \rangle = 0$
I think my next step is to find a point on Line 1 which satisfies both equations and then insert those values into the plane $3(x)+2(y)+2(z)=5$ and use the formula, $$
\frac{(3(x)+2(y)+2(z)-5)}{(3^2+2^2+2^2)}$$ to find the distance.
The values that I calculuate do not match the posted answer of $7/\sqrt{17}$
 [/INST] Put $(P_1): x - z -3 = 0$, $(P_2): x+2y+4z=6$, $(P_3): 3x + 2y +2z -5 = 0$ and $\Delta$ is intersection of two plane $(P_1)$ and $(P_2)$. We have, a normal vector of the plane $(P_1)$ is $a = (1,0,-1)$, a normal vector of the plane $(P_2)$ is $b = (1,2,4)$. A direction vector $v$ of $\Delta$ is cross product of $a$ and $b$, therefore $v = (3, 2, 2)$. Another way, $M=(3, \dfrac32, 0)$ lies on $\Delta$ and not belongs to $(P_3)$, thus $\Delta$ is parallel to the plane $(P_3)$. We have, the distance between the line $\Delta$ to the plane $(P_3)$ is the distance from the point $M$ to the plane $(P_3)$. From here, we have answer is $$\dfrac{|3\cdot 3 + 2\cdot\dfrac{3}{2} + 2\cdot 0 - 5|}{\sqrt{3^2 + 2^2 + 2^2}} = \dfrac{7\sqrt{17}}{17}.$$
</s>