\(\hept{\begin{cases}mx+y=4\\x-my=1\end{cases}\Rightarrow\hept{\begin{cases}m+m^2y+y=4\\x=1+my\end{cases}}}\)
\(\Rightarrow\hept{\begin{cases}x=1+my\\y\left(m+1\right)=4-m\end{cases}\Rightarrow\hept{\begin{cases}y=\frac{4-m}{m^2+1}\\x=\frac{m^2+1+4m-m^2}{m^2+1}=\frac{4m+1}{m^2+1}\end{cases}}}\)
\(\Rightarrow x+y=\frac{8}{m^2+1}\Leftrightarrow\frac{4-m+4m+1}{m^2+1}=\frac{8}{m^2+1}\)
<=> 5+3m=8 <=> m=1
\(\Rightarrow\hept{\begin{cases}x=\frac{4+1}{1+1}=\frac{5}{2}\\y=\frac{4-1}{2}=\frac{3}{2}\end{cases}}\)