\[x^{2} - 7x + q = 0;\ \ \ x_{1} = 5\]
\[x_{1} + x_{2} = 7\]
\[5 + x_{2} = 7\]
\[x_{2} = 2.\]
\[q = x_{1} \cdot x_{2} = 2 \cdot 5 = 10.\]
\[Ответ:x_{2} = 2;\ \ q = 10.\]