First finding Cumulative Frequencies(cf) of all classes
cf of class 10 to 20=12
cf of class 20 to 30=12+30=42
cf of class 30 to 40=42+a
cf of class 40 to 50=107+a
cf of class 50 to 60=107+a+b
cf of class 60 to 70=132+a+b
cf of class 70 to 80=150+a+b
As total number of observations are, n=230 so 230=150+a+b, because cf of last interval is equal to n.
a+b=80 ... (1)
Median=46 that is between 40 and 50, hence median class=40−50
f= frequency of median class =65
cf= cumulative frequency =42+a ... (cf of previous class)
l= lower limit of median class =40
h=50−40=10
Median=l+n2−cff×h
46=40+2302−(42+a)65×10
610=73+a65
a=34
From (1):
34+b=80
b=46
Hence a=34 and b=46