Check the final answer first, then review the worked steps.
x^2 + 6x + 9 = (x + a)^2(x + 3)^2 = x^2 + 6x + 9a = 3