Cate and Elena were playing a card game. The stack of cards in the middle had 24 cards in it to begin with. Cate added 8 cards to the stack. Elena then took 12 from the stack. Finally, Cate took 9 cards from the stack. How many cards were left in the stack.