This is a system of equations. The best way to solve it is by realizing that you have two equations equal to y. Since y = y, it follows that [tex]-x+7=x-1[/tex]. Solving for x, you get 4.
[tex]7=2x-1 \\ 8=2x \\ 4=x[/tex]
Then, substitute 4 into one of the original equations to find y.
[tex]y=(4)-1=3[/tex].
The solution is [tex](4,3)[/tex]. I have attached a graphical representation of the solution as well.