This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $\overrightarrow{AB}=(12,4,6)=2(6,2,3)$ and $|(6,2,3)|=7$. A point at distance 21 from $A$ is $A\pm3(6,2,3)$: $(22,0,7)$ or $(-14,-12,-11)$. Only $(22,0,7)$ has non-negative coordinates. $PQ=\sqrt{18^2+12^2+4^2}=\sqrt{484}=22$. Answer: 22.