📖 Explanation
To determine the unknown frequencies, we utilize the standard definitions for mean and median in grouped frequency distributions. First, the sum of all frequencies is N=a+b+12+9+5=a+b+26. By multiplying each class midpoint-3, 9, 15, 21, and 27-by its corresponding frequency, the mean is expressed as the sum of these products divided by N. Equating this to the given mean yields the equation:
a+b+263a+9b+504=22309
Cross-multiplying and simplifying this expression leads to 66a+198b+11088=309a+309b+8034, which further reduces to the linear equation 81a+37b=1018.
Next, we apply the median formula L+(f2N−cf)×h. Since the median is 14, it falls within the 12-18 interval, where the lower limit L is 12, the class frequency f is 12, the class size h is 6, and the cumulative frequency of the classes preceding the median class is a+b. Substituting these values gives:
14=12+(122a+b+26−(a+b))×6
Simplifying this equation, we find 2=22a+b+26−(a+b), which rearranges to 4=2a+b+26−2(a+b), eventually resulting in a+b=18. Solving the system formed by 81a+37b=1018 and a+b=18 provides the values a=8 and b=10. Finally, computing (a−b)2 gives (8−10)2, which is 4.