If the data arranged in ascending order is 8, 9, 12, 17, x+2, x+4, 30, 34, 39 and the median is 24, then the value of x is 21
Here, \(n = 10\) \(\therefore\) Median = (5th term + 6th term)/2 \( = \frac{(x+2)+(x+4)}{2} \) \(\therefore\) According to the question: \(\frac{(x+2)+(x+4)}{2} = 24\) Or, \(\frac{2x + 6}{2} = 24\) Or, \(x + 3 = 24\) Or, \(x = 24 - 3 = 21\) \(\therefore\) Required value \(x = 21\)