a.
\(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\left[{}\begin{matrix}2-x=0\\x+5=0\end{matrix}\right.\) \(\Rightarrow\left[{}\begin{matrix}x=2\\x=-5\end{matrix}\right.\)
b.
\(6x^2-7x+2=0\)
\(\Leftrightarrow6x^2-3x-4x+2=0\)
\(\Leftrightarrow3x\left(2x-1\right)-2\left(2x-1\right)=0\)
\(\Leftrightarrow\left(3x-2\right)\left(2x-1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}x=\dfrac{2}{3}\\x=\dfrac{1}{2}\end{matrix}\right.\)