\(5x.\left(x-1\right)=x-1\)
\(\Leftrightarrow5x\left(x-1\right)-\left(x-1\right)=0\)
\(\Leftrightarrow\left(5x-1\right)\left(x-1\right)=0\)
\(\Leftrightarrow\orbr{\begin{cases}5x-1=0\\x-1=0\end{cases}\Leftrightarrow\orbr{\begin{cases}x=\frac{1}{5}\\x=1\end{cases}}}\)
\(S=\left\{\frac{1}{5};1\right\}\)
\(2\left(x+5\right)-x^2-5x=0\)
\(\Leftrightarrow2\left(x+5\right)-x\left(x+5\right)=0\)
\(\Leftrightarrow\left(2-x\right)\left(x+5\right)=0\)
\(\Leftrightarrow\orbr{\begin{cases}2-x=0\\x+5=0\end{cases}\Leftrightarrow\orbr{\begin{cases}x=2\\x=-5\end{cases}}}\)
\(S=\left\{2;-5\right\}\)