Explanation:
then we do the multiplications and compare :
(x - p)² = q
x² - 2px + p² = q
x² - 2px + p² - q = 0
our target is
x² + 4x - 20 = -8
x² + 4x - 12 = 0
now we compare the variable expression with the target.
x² = x² check
4x = -2px
4 = -2p
p = -2
-12 = p² - q = 4 - q
-16 = -q
q = 16
so, we have
(x - -2)² = 16
(x + 2)² = 16