9. If $x^{3}+a x^{2}+b x+8$ has two factors $x+1$ and $x+2$, then $a+b=(\quad$.
(A) 7
(B) 8
(C) 13
(L) 21
9.D

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.