Rylee wanted to buy candy to give to her colleagues. She spent $264 to buy the candy. If each piece of candy costs $12, how many pieces of candy did she buy?