Đề là \(\left(x+y\right)\left(m^2+3\right)=-8\) đúng không?
\(HPT\Leftrightarrow\left\{{}\begin{matrix}y=mx-2\\3x+m\left(mx-2\right)=3m\left(1\right)\end{matrix}\right.\\ \left(1\right)\Leftrightarrow3x+m^2x-2m=3m\\ \Leftrightarrow x\left(m^2+3\right)=5m\Leftrightarrow x=\dfrac{5m}{m^2+3}\\ \Leftrightarrow y=mx-2=\dfrac{5m^2}{m^2+3}-2=\dfrac{3m^2-6}{m^2+3}\\ \Leftrightarrow x+y=\dfrac{5m+3m^2-6}{m^2+3}\\ \left(x+y\right)\left(m^2+3\right)=-8\\ \Leftrightarrow3m^2+5m-6=-8\\ \Leftrightarrow3m^2+5m+2=0\\ \Leftrightarrow\left[{}\begin{matrix}m=-\dfrac{2}{3}\\m=-1\end{matrix}\right.\)