12. Person A, B, and C went on an outing. A bought 9 sausages, B bought 6 loaves of bread, and C bought 3 bottles of mineral water. B spent \(\frac{12}{13}\) of what A spent, and C spent \(\frac{2}{3}\) of what B spent. C, based on how much each person spent, took out 9 yuan to distribute to A and B, giving A \(\qquad\) yuan and B \(\qquad\) yuan.
甲 6 元 乙 3 元

A 6 yuan B 3 yuan