Algebra Examples

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