Precalculus Examples

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