5. In a certain region, a change of leadership election is being held, and 3 people need to be selected from Jia, Yi, Bing, and Ding to take on 3 different roles. It is stipulated that Jia, Yi, and Bing, who held positions in the previous term, cannot be re-elected to their original roles. The number of different possible outcomes for the appointments is ( )
A. 9
B. 11
C. 12
D. 15
5. B

Those not containing Ding are 2, those containing Ding are $C_{3}^{1} C_{3}^{2}=9$.