Solution:
Given that the median of data is 31..
To find the values of x and y, write the table containing class intervals and calculate cumulative frequency.
Therefore the corresponding median class is ..
Use formula to form equations in x and y.
In the formula, l is the lower limit of the median class, N denotes the total number of observations, cf is the cumulative frequency of the preceding class, f is the frequency of each class and h is the class size.
……(1)
Also the sum of frequency is 40.
……..(2)
Subtract equation 2 from equation 1 and simplify.
Substitute the value of x in equation 2 to calculate the value of y.
Therefore, the value of x = 8 and that of y = 10 .
Hence, option 3 is correct.