To complete squares we first need to leave the variables in one side of the equation:

Now we take the coefficient of the linear term, we divide it by two and squared the result. We add the result in borh sides of the equation:

the left side is now a complete squared:

Therefore the number that we had to add in both sides of the equation is 16.