Concept used — mean of grouped data (direct method)
Each class is represented by its class mark xi=2lower limit+upper limit, and
xˉ=∑fi∑fixi
Step 1 — Table of class marks and fixi.
| Rainfall (in mm) | Number of days fi | Class mark xi | fixi |
|---|
| 0 – 20 | 7 | 10 | 70 |
| 20 – 40 | x | 30 | 30x |
| 40 – 60 | 10 | 50 | 500 |
| 60 – 80 | 4 | 70 | 280 |
| Total | 21+x | | 850+30x |
Step 2 — Set the mean equal to 35.
35=21+x850+30x
Step 3 — Solve for x. Multiply both sides by (21+x):
35(21+x)=850+30x
735+35x=850+30x
35x−30x=850−735
5x=115⇒x=23
Answer: the rainfall was between 20 and 40 mm on 23 days.
Note (check): 21+23850+30×23=441540=35 mm.