\(x^2-4x+5x-20=0\)
\(\Leftrightarrow x\left(x-4\right)+5\left(x-4\right)=0\)
\(\Leftrightarrow\left(x-4\right)\left(x-5\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x-4=0\\x-5=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=4\\x=5\end{matrix}\right.\)
Vậy \(S=\left\{4;5\right\}\)