Find the values of a for which the graphs $$ y=x+a \quad \text{and}\quad x^2 + y^2 = 9$$ intersect at $1$, $2$ and $0$ points
I had gotten up to the point where for the first one, where there is just one intersection, that I could use perfect squares, however that lead to an unsolvable equation (at least I thought it was) after i substituted in the other equation. I am seriously stuck with this hard intersection problem and i would greatly appreciate help.