Answer:
z = 9 will allow both polynomials to be factored.
Explanation:
Perfect square binomials:
For perfect square binomials, we have that:

x² - 6x + z
x² + 6x + z
First term of the binomial is x, and the second is:




Value of z:
The final term is a squared, so:

z = 9 will allow both polynomials to be factored.