Sum of roots = 12/1 = a + a^2 ---------(1)
Product of roots = k/1 = a x a^2 ------------(2)
From (1),
a^2 + a -12 = 0
(a+4)(a-3) = 0
a = -4 or a = 3
From (2),
k = a^3
k = (-4)^3 = -64 or 3^3 = 27
Checking:
x^2 -12x-64 = 0
(x-16)(x+4) = 0
x=16 or -4 (correct)
x^2 -12x+27=0
(x-3)(x-9) =0
x=3 or 9 (correct)