The median of the data arranged in ascending order 8, 9, 12, 18, (x + 2), (x + 4), 30, 31, 34, 39 is 24. The value of x is

Given data = 8, 9, 12, 18, (x + 2), (x + 4), 30, 31, 34, 39


We have n = 10 (even)


Median = 1/2 [Value of (n/2)th term + (n/2 + 1)th term]


Now, Median = 24 (given)


24 = 1/2 [ Value of 5th term + Value of 6th term]


24 × 2 = (x + 2) + (x + 4)


48 = 2x + 6


48 – 6 = 2x


42 = 2x


So,


x = 42/2 = 21

33