A bakery sells boxes of cookies. Each box contains 12 cookies. After selling some cookies, the bakery has 78 cookies left, which is 6 more than half the total number of cookies they started with. How many boxes of cookies did the bakery sell? Let's think step by step and output the final answer within \boxed{}.
user