In the given polynomial z2+13z+40,
The first term is z2 and its coefficient is 1.
The middle term is 13z and its coefficient is 13.
The last term is a constant term 40.
Multiply the coefficient of the first term by the constant 1×40=40.
We now find the factor of 40 whose sum equals the coefficient of the middle term, which is 13 and then factorize the polynomial z2+13z+40 as shown below:
z2+13z+40=z2+8z+5z+40=z(z+8)+5(z+8)=(z+5)(z+8)
Hence, z2+13z+40=(z+5)(z+8).