Let the maximum value =M
Let the minimum value =m
Let the median value =d
In a way, we've gotten the 3 numbers (a,b,c).
Mean=3M+m+d→(1)
From the first condition:
⇒ Max(a,b,c) + Min(a,b,c)=15
⇒M+m=15→(2)
From the second condition:
⇒ Median(a,b,c) − Mean(a,b,c)=2
⇒d−Mean=2→(3)
Putting (1) into (3):
⇒d−(3M+m+d)=2
Putting (2) in the above:
⇒d−(315+d)=2
⇒3d−15−d=6
⇒2d−15=6
⇒d=221=10.5
Therefore, the median of a, b, and c is 10.5.