\(a.\Leftrightarrow mx^2+2mx-x+m+2=0\)
\(\Leftrightarrow mx\left(x+2\right)+\left(m+2\right)-x=0\)
\(\Leftrightarrow\left(m+2\right)\left(mx+1\right)-x=0\)
\(\Rightarrow\left\{{}\begin{matrix}m=\left(0+x\right):\left(mx+1\right)-2\\m=[\left(0+x\right):\left(m+2\right)-1]:x\end{matrix}\right.\)