Sam collects baseball cards. He gave 6 cards to his brother. He then got 4 new cards from his father. Sam now has 12 cards. How many baseball cards did he have before giving some to his brother