I know that there are quicker ways to do what I am about to present. But I want to understand why my approach does not work.
Let the point $P = (-6, 3, 3)$ and the line $L=(-2t,-6t,t)$.
I am trying to find the shortest distance between the point and the line. From my observation, I believe the line passes through the origin because it can be written as $$L=\begin{bmatrix}0 \\ 0 \\ 0 \end{bmatrix} +t \begin{bmatrix}-2 \\ -6 \\ 1 \end{bmatrix} $$.
Let $Q$ denoted $(a, b, c)$ be a point on $L$ such that $\vec{QP}$ is the shortest distance between $L$ and $P$. Note that $\vec{QP}$ is normal to $L$.
Therefore, I need to find $\vec{QP}$ which is $\vec{P}-\vec{Q}$.
$\vec{QP} = (-6 - a, 3 - b, 3 -c)$
We know that $\vec{QP}$ and $L$ are perpendicular so the dot product is 0.
$$-2(-6 - a) - 6(3 - b) + (3 - c) = 0$$
Simplifying gives us $$2a + 6b - c -3 = 0$$
let $a=0$, $b=1$, then by solving we know that $c=3$.
From my understanding, we should have found $Q$ which intersects $L$ and $\vec{QP}$. Unfortunately, it seems $||\vec{QP}||$ is not the correct answer. I think that the way I managed to pull out the $a$, $b$ and $c$ is the culprit, however I just don't understand what I did wrong.