ta có : \(x+3y=xy+3\Leftrightarrow x+3y-xy-3\Leftrightarrow-xy+3y+x-3\)
\(\Leftrightarrow-y\left(x-3\right)+\left(x-3\right)=\left(1-y\right)\left(x-3\right)=0\) \(\Leftrightarrow\left\{{}\begin{matrix}1-y=0\\x-3=0\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}y=1\\x=3\end{matrix}\right.\) vậy \(y=1;x=3\)