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