Emily has 3 types of fruit in her basket: apples, oranges, and bananas. She has 8 apples, 12 oranges, and 5 bananas. She gives away 3 apples and 4 oranges to her friends. Then, she buys 6 more bananas. How many pieces of fruit does Emily have now? Let's think step by step and output the final answer within \boxed{}.
user