Kevin is an expert pastry chef. He can bake and decorate an entire cake in 30 minutes. He can also bake and frost a cupcake in 10 minutes. If he works for 12 hours on these two tasks and ends up making a total of 3 cakes, how many cupcakes did he make?