Precalculus Examples

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