On Tuesday Shanice bought 5 hats. On Wednesday half of all the hats she had were destroyed. On Thursday there qwew inl 17 left. How many did she have on Monday?

(Show your work please!)