Один из корней уравнения $x^2 - 13x + q = 0$ равен 12,5. Найдите другой корень и коэффициент q.
$x^2 - 13x + q = 0$
$x_1 = 12,5$
$\begin{equation*}
\begin{cases}
x_1 + x_2 = 13 &\\
x_1x_2 = q &
\end{cases}
\end{equation*}$
$\begin{equation*}
\begin{cases}
12,5 + x_2 = 13 &\\
12,5x_2 = q &
\end{cases}
\end{equation*}$
$\begin{equation*}
\begin{cases}
x_2 = 13 - 12,5 &\\
12,5x_2 = q &
\end{cases}
\end{equation*}$
$\begin{equation*}
\begin{cases}
x_2 = 0,5 &\\
12,5 * 0,5 = q &
\end{cases}
\end{equation*}$
$\begin{equation*}
\begin{cases}
x_2 = 0,5 &\\
q = 25 &
\end{cases}
\end{equation*}$
Пожауйста, оцените решение