The Mysterious Bakers
A bakery sells cupcakes in boxes of 6 and 12. One morning, the baker made 78 cupcakes. He sold all of them, with some in boxes of 6 and the rest in boxes of 12. If the baker used exactly 8 boxes, how many boxes of each type did he use?