Darryl bought 7 hats. A week later half of all his hats were destroyed in a fire. There are only 24 hats left. How many hats did he start with?