Can anyone show me how to solve this using the quadratic equation?

e^3=x^2 + 6x + 8

It says in the solution you must group e^3 with 8. Therefore making the problem...

x^2 + 6x -(e^3-8)=0

I'm just stuck on how you put this into the quadratic equation.