What is the solution to the system of linear equations?

Answer:
The answer is [tex](x,y)=(3,1)[/tex]
Step-by-step explanation:
Firstly, we have to eliminate a variable, x or y. It doesn't matter which one.
For that, we orderer the variables in the same way for both equations.
[tex]-x+y=-2\\2*x+y=7[/tex]
Then, we need to have the same coefficient in the variable that we want to eliminate, but with different sign
Choosing the x variable:
[tex]2*(-x+y)=2*(-2)\\-2*x+2*y=-4\\\\1*(2*x+y)=1*(7)\\2*x+y=7[/tex]
Then we add both equations:
[tex]-2*x+2*y+2*x+y=-4+7\\3*y=3\\y=\frac{3}{3}\\ y=1[/tex]
Then we replace the value of "y" in whatever equation:
[tex]-x+1=-2\\-x=-2-1\\-x=-3\\x=3[/tex]
Finally, the answer is [tex](x,y)=(3,1)[/tex]