The position vectors of points $A$ and $B$ are $3i-k$and $2i + j + 3k$ respectively. Find the shortest distance of Point $A$ from $2\vec{OA} - \vec{OB}$
I found the vector and subsequently the magnitude of vector $2\vec{OA} - \vec{OB}= \sqrt {42}$ units
i drew this to help me understand the question -

I know the magnitude of vector 2OA-OB
now, I am left to find the length of projection of $2\vec{OA} - \vec{OB}$ onto $A = \frac{17}{\sqrt {10}}$.
I then used Pythagoras theorem to find the shortest distance -
$ \sqrt { (\sqrt42)^2 - (\frac{17}{\sqrt{10}})^2 } $. However, my answer is wrong. Have I gotten anything wrong here ?
Your method is fine but you have projected $(2OA-OB)$ ont $OA$ insted of $OA$ onto $2(OA-OB)$.
In this way we obtain
then the projection $|OP|$ of $OA$ onto $2OA-OB$ is
$$|OP|=OA\cdot \frac{2OA-OB}{|2OA-OB|}=\frac{17}{\sqrt{42}}$$
then
$$|D|= (|OA|^2-|OP|^2)^\frac12=\left(10-\frac{289}{42}\right)^\frac12=\left(\frac{131}{42}\right)^\frac12=$$