First find the total number of extracurricular hours Annie does per week: 2 hours/week + 8 hours/week + 3 hours/week = <<2+8+3=13>>13 hours/week
Then find the number of weeks in a semester before midterms by dividing the total number of weeks by 2: 12 weeks/semester / 2 = <<12/2=6>>6 weeks/semester
Then find the number of weeks before midterms that Annie wasn't sick: 6 weeks - 2 weeks = <<6-2=4>>4 weeks
Then multiply Annie's weekly commitment by the number of weeks to find her total number of extracurricular hours: 13 hours/week * 4 weeks = <<13*4=52>>52 hours
#### 52