Sarah is going to the store to buy bread for a picnic. She needs twice as many slices of bread than cheese slices. She has 24 cheese slices. If each bag of bread contains 12 slices, how many bags of bread does she need to buy?