a.
\(\Leftrightarrow x^2-4x+4-\left(x^2+2x\right)=20\)
\(\Leftrightarrow-6x+4=20\)
\(\Leftrightarrow-6x=16\)
\(\Leftrightarrow x=-\dfrac{8}{3}\)
b.
\(\Leftrightarrow5x\left(x-7\right)-5\left(x-7\right)=0\)
\(\Leftrightarrow\left(5x-5\right)\left(x-7\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}5x-5=0\\x-7=0\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}x=1\\x=7\end{matrix}\right.\)