Subtracting the second equation from the first one we get:
[tex]\begin{gathered} 3x-y-(2x-y)=9-7, \\ 3x-y-2x+y=2, \\ x=2. \end{gathered}[/tex]Substituting x=2 in the first equation and solving for y we get:
[tex]\begin{gathered} 3(2)-y=9, \\ 6-y=9, \\ -y=3, \\ y=-3. \end{gathered}[/tex]Answer: x=2 and y=-3.