you need to equal the equation to zero , then pass 164 to the other side of the equation .
so you will have x^2+ 2x = -164.
Then, you need multiply 2x by 1/2. The result, which is 1, must be written on both sides of the equation.
At this point, you have already completed the square, and you only need to reduce both sides of the equation.
(x+1)^2 = -163
(x+1)^2 + 163
Therefore, a = 1 and b = 163