We start by completing the square:
x² - 6x + 7 = 0
x² - 6x = -7
To complete the square, we need to add and subtract (6/2)² = 9 to the left side of the equation:
x² - 6x + 9 - 9 = -7
(x - 3)² - 9 = -7
(x - 3)² = 2
Now we have the equation in the desired form, where a = 3 and b = 2. So the answer is:
a = 3, b = 2