If the product of the roots of the equation x^{2}-3 x+k=10 is -2 then the value of k is
(a) -2
(b) -8
(c) 8
(d) 12