The expression for the square of a binomial is

Since your expression starts with

It means that
, and so -6x must be twice the product of x and some number b. If you choose b = -3 you have

So, if you add 8 to both sides of your equation, you have

By choosing one sign at a time, we have the two solutions

