Mary has three dolls, and she wants to buy each doll a hat. The hats cost 3$ each, how much money should Mary prepare? ( )
3$
9$
6$
12$