group the 1st 2 terms and last 2 terms:
(Z63 -2z^2) + (9z-18)
factor out GCF:
z^2(z-2) + 9(z-2)
now factor the polynomial:
(z-2) (z^2+9)