2. Given that $x$ is a positive integer. Then, the number of triangles that can be formed with sides $3$, $x$, and $10$ is ( ).
(A) 2
(B) 3
(C) 5
(D) 7
2. C

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