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