The table gives marks out of 50 by 40 candidates:

Class Frequency(i) In which class deos the median mark lie?

1-10 7

11-20 8

21-30 15

31-40 7

41-50 3

(ii) calculate the mean mark.

I know the median is the value of the middle term. But the two 7's has got me confused. Thanks