[tex]-x+y=5\Rightarrow y=x+5[/tex]
Substitute [tex]y[/tex] in the other equation:
[tex]2x^{2}-3x-(x+5)=-5[/tex]
[tex]\Rightarrow 2x^{2}-3x-x-5=-5[/tex]
[tex]\Rightarrow 2x^{2}-4x-5=-5[/tex]
[tex]\Rightarrow 2x^{2}-4x=0[/tex]
[tex]\Rightarrow 2x(x-2)=0[/tex]
So either
[tex]2x=0\Rightarrow x=0\Rightarrow y=0+5=5[/tex]
or
[tex]x-2=0\Rightarrow x=2\Rightarrow y=2+5=7[/tex]