Lillian is making chocolate cupcakes to sell at a fundraiser. She only has 3 cups of sugar at home. She goes to the store and buys 2 bags of sugar. Each bag of sugar contains 6 cups. The batter uses 1 cup of sugar per 12 cupcakes. She needs 2 cups of sugar to make enough frosting for a dozen cupcakes. How many dozen cupcakes can she bake and ice with the sugar she has?
The bags of sugar which she bought contain 2 * 6 = <<2*6=12>>12 cups.
In total, she has 12 cups + 3 cups = <<12+3=15>>15 cups of sugar to use.
She needs 1 cup + 2 cups = <<1+2=3>>3 cups of sugar to make the batter and frosting for a dozen cupcakes.
Lillian has enough sugar to bake and ice 15 / 3 = <<15/3=5>>5 dozen cupcakes.
#### 5