A chocolate bar cost $3 and a lollipop cost $2. Dave wanted to buy the same number of chocolates and lollipops. When he spends $12 on lollipops, how much did he spend on chocolates

12/2 = 6 lollipops

so, how much for 6 chocolate bars?