Algebra Examples

Solve by Substitution y=x^2-8x+2y=-2x+18
I am unable to solve this problem.