A bakery sells cookies in two different packages. Each small package contains 8 cookies, and each large package contains 15 cookies. The bakery sold 12 small packages and 10 large packages in a day. Later, a customer returned half of the total large packages sold. How many cookies did the bakery finally sell that day? Let's think step by step and output the final answer within \boxed{}.
user