David is organizing his collection of baseball cards. He has 18 cards of his favorite player and decides to buy 7 more cards from a friend.
Later, he gives away 5 cards to his cousin. How many baseball cards does David have left in his collection?