x^2+ax-18
=(x-18)(x+1)(a=-17)
=(x-9)(x+2)(a=-7)
=(x-6)(x+3)(a=-3)
=(x-3)(x+6)(a=3)
=(x-1)(x+18)(a=17)
=(x-2)(x+9)(a=7)