6. As shown in the figure, a line segment $AB$ of length 9 is divided into 9 equal parts. The total length of all line segments in the figure is ( ).
(A) 132
(B) 144
(C) 156
(D) 165
6、D

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