12+(8+2n+4)(n-1)÷2
=12+(12+2n)(n-1)÷2
=12+2(6+n)(n-1)÷2
=12+(6+n)(n-1)
=12+n²+5n-6
=n²+5n+6
=(n+2)(n+3)