DDesmos SAT Prep

If (x + a)^2 + b is equivalent to x^2 + 8x + 10 for all x, what is the value of a + b?

Live Desmos calculator — type the equations from the trick above and click points to read off coordinates.