Sam bought 6 baseball trading cards to add to his collection. The next day his dog ate half of his collection. There are now 27 cards left. How many cards did Sam start with?