Ta có: \(\left\{{}\begin{matrix}3x+y=2m+9\\x+y=5\end{matrix}\right.\)\(\Leftrightarrow\left\{{}\begin{matrix}3x+5-x=2m+9\\y=5-x\end{matrix}\right.\)\(\Leftrightarrow\left\{{}\begin{matrix}2x=2m+4\\y=5-x\end{matrix}\right.\)\(\Leftrightarrow\left\{{}\begin{matrix}x=m+2\\y=5-m-2\end{matrix}\right.\)
Gọi A=xy+x-1, ta có: \(A=\left(m+2\right)\left(5-m-2\right)+m+2-1\)
\(A=\left(m+2\right)\left(3-m\right)+m+1\)
\(A=-m^2+m+6+m+1\)
\(A=-m^2+2m+7=-\left(m-1\right)^2+8\)
\(A_{max}=7\Leftrightarrow m=1\) Khi đó x=3, y=2