x=2y-7

8x+5y=7

rearrange things to a standard format:

x - 2y = -7
8x + 5y = 7

multiply #1 by 8:

8x - 16y = -56
8x + 5y = 7

Now just subtract, and the x's are eliminated...