For a set of data 8, 9, 6, m, the mean is equal to the median

For a set of data 8, 9, 6, m, the mean is equal to the median

① When m is the maximum, the order is: m, 9, 8, 6. According to the meaning of the question, M + 9 + 8 + 64 = 9 + 82. The solution is m = 11. When m is the minimum, the order is: 9, 8, 6, M. according to the meaning of the question, M + 9 + 8 + 64 = 8 + 62. The solution is m = 5. When m is neither the maximum nor the minimum, the order is: 9, 8, m, 6 or 9, m, 8, 6. According to the meaning of the question, M + 9 + 8 + 64 = 8 + m2. The solution is m = 7. The value of M is 5 or 7 or 11 .