18z+45+z^2 (factor)

please show steps

you want two factors of 45 which add to 18.

Since 45 = 15*3, you get

(x+15)(z+3)