Trừ vế cho vế:
\(\Leftrightarrow\left\{{}\begin{matrix}x=m-1\\mx+y=m+1\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}x=m-1\\y=m+1-mx\end{matrix}\right.\)
\(\Rightarrow\left\{{}\begin{matrix}x=m-1\\y=-m^2+2m+1\end{matrix}\right.\)
\(\Rightarrow2x+y=2\left(m-1\right)-m^2+2m+1=-\left(m-2\right)^2+3\le3\) (đpcm)