In such cases, one of the simplest approaches to solve would be to form cases to figure out the answer.
Let's first find out the value of the mean of the set: (3+6+9+10+n)/5 = (28+n)/5
Case 1: n > 10
If n > 10, then the median would be 9, as n would be placed after 10 and the middle-most element would be 9 in this case.
Equating mean and median => (28+n)/5 = 9, thus n = 17 (which is greater than 10), hence one possible value of n is 17.
Case 2: 6 < n < 9
When n is between 6 and 9, the median would be n as n would be the middle-most element of the resultant set.
Equating mean and median => (28+n)/5 = n, thus n = 7 (which is between 6 and 9), hence another possible value of n is 7.
Case 3: n < 6
When n is lesser than 6, the median would be 6 as it would be the middle-most element of the new set.
Equating mean and median => (28+n)/5 = 6, thus n = 2 (which is lesser than 6), hence another possible value of n is 2.
Thus, we get 3 such values of n, and the sum of them all = 17+7+2 = 26
Hence, the correct answer is Option E, i.e. 26 (Answer)