A B 100 10 A B 50 20 A C 150 10 B C 20 10 C C A C M C C