A general point on the line is \(F(5+3t,\ 12+t,\ 10+2t)\); the direction vector is \((3,1,2)\).
\(\overrightarrow{QF}=(4+3t,\ 10+t,\ 10+2t)\) must be perpendicular to the line: \(3(4+3t)+(10+t)+2(10+2t)=0\Rightarrow 42+14t=0\Rightarrow t=-3\).
So \(F=(-4,\ 9,\ 4)\) and \(\overrightarrow{QF}=(-5,\ 7,\ 4)\), \(QF^2=25+49+16=90\).
F is the midpoint of PQ, so \(PQ=2\,QF\) and \(PQ^2=4\cdot90=360\).
Answer: (3) 360