A laboratory keeps three groups of mice for testing. Eight mice each weigh less than 20 grams. Fifteen mice each weigh at least 20 grams but not more than 35 grams. Seven mice each weigh more than 35 grams. Which of the following could be the median weight, in grams, of these 30 mice?
18
24
36
40