For equal roots, we have that b2=4acb^{2} = 4acb2=4ac, so, given a=1, b = -k and c = 9,
(−k)2=4×1×9 ⟹ k2=36(-k)^{2} = 4 \times 1 \times 9 \implies k^{2} = 36(−k)2=4×1×9⟹k2=36
k=36=±6k = \sqrt{36} = \pm 6k=36=±6