Maggi had 3 packages of cupcakes. There are 4 cupcakes in each package. She ate all of the packages of cupcakes, then ate 5 more cupcakes. How many did he eat in all?