6. If a non-empty set $S \subseteq\{1,2,3,4,5\}$, and if $a \in S$, then $6-a \in S$ must also hold, then the total number of sets $S$ that satisfy the above condition is
A. 6
B. 7
C. 8
D. 9
6. B

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