\(\Delta=1-4\left(-m-2\right)\ge0\Leftrightarrow m\ge-\dfrac{9}{4}\)
Theo hệ thức Viet: \(\left\{{}\begin{matrix}x_1+x_2=-1\\x_1x_2=-m-2\end{matrix}\right.\)
\(x_1^2-x_1x_2-2x_2=16\)
\(\Leftrightarrow x_1\left(x_1+x_2\right)-2x_1x_2-2x_2=16\)
\(\Leftrightarrow-x_1-2\left(-m-2\right)-2x_2=16\)
\(\Leftrightarrow x_1+2x_2=2m-12\)
\(\Rightarrow x_1+x_2+x_2=2m-12\)
\(\Leftrightarrow-1+x_2=2m-12\Rightarrow x_2=2m-11\Rightarrow x_1=-1-x_2=-2m+10\)
Lại có: \(x_1x_2=-m-2\)
\(\Rightarrow\left(-2m+10\right)\left(2m-11\right)=-m-2\)
\(\Leftrightarrow4m^2-43m+108=0\Rightarrow\left[{}\begin{matrix}m=4\\m=\dfrac{27}{4}\end{matrix}\right.\)