Given set of numbers: x, 6, 18, 21, 27, 27
For
mode: It's mentioned that there is only 1 unique mode in the set of numbers, and 27 already appears twice so it must be the mode. Hence, x cannot be 6, 18 or 21.
Now, for
median, there can be multiple cases, but it's given in the question that the mean, median and mode are each consecutive multiples of 3. Therefore, the
median must be divisible by 3.
Case 1: x <=18: The ordered set may be written as x, 6, 18, 21, 27, 27 or 6, x, 18, 21, 27, 27.
Either way, the median is (18 + 21) / 2 = 19.5 which is not a multiple of 3 and hence, x cannot be less than 18.
Case 2: x is between 18 and 21 i.e., 18 < x < 21 (since we've already established above that x cannot be 18 or 21): This constraint then goes to follow that x = 19 or x = 20 (meaning that the ordered set is 6, 18, (x = 19 or 20,) 21, 27, 27). In either case, the value of the median (20 or 20.5 respectively) will not be a multiple of 3 and hence x cannot be between 18 and 21.
Case 3: 21 < x <= 27: In this case, the ordered set will be 6, 18, 21, x, 27, 27 and hence the median will be (21 + x) / 2. Now, we need the result of this term to be a multiple of 3 and the only value of x that satisfies these conditions is 27. Therefore, x = 27 and the median of the ordered set will be 24.
Case 4: x > 27: The ordered set in this case will be 6, 18, 21, 27, 27, x and the middle two values will always be 21 and 27 and the median will always be 24.
Hence, keeping all these cases in mind, the
median must be 24.
For
mean: Now, we know the mode is 27 and the median is 24, so, for the mean, median and mode to all be consecutive multiples of 3, the mean must either be
21 or 30. That way the mean, median, mode (not in that particular order) can be written in two sets i.e.,
{21, 24, 27} and
{24, 27, 30}.
So, let's calculate the value of x in each of these cases:
We know that 6 + 18 + 21 + 27 + 27 = 99
Case 1: The mean is 21. Hence,
(99 + x) / 6 = 21
99 + x = 126
x = 27
Case 2: The mean is 30. Hence,
(99 + x) / 6 = 30
99 + x = 180
x = 81
Hence, we have two valid values of x which are
27 and 81, the range which is 81 - 27 = 54.
Final answer: B. 54