A group of data: 10, 10, x, 8, whose mode is equal to the average, then what are the median and mode of this group of data?

A group of data: 10, 10, x, 8, whose mode is equal to the average, then what are the median and mode of this group of data?

Let the average be 10, then x equals 10x4-10-10-8 = 12
Median = 10
Mode = 10