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