For equal roots, we have that b2=4ac, so, given a=1, b = -k and c = 9,
(−k)2=4×1×9impliesk2=36
k=√36=±6