On Tuesday Emily bought nine hats. on Wednesday half of all the hats that she had were destroyed. on Thursday there were only 24 left. How many did she have on Monday?