Tim bought 9 new baseball trading cards to add to his collection. The next day his dog ate half of his collection. There are now only 24 cards left. How many cards did Tim start with?