TITLE: How to find the median of three numbers, if one of them appears twice?
QUESTION [7 upvotes]: How do you determine the median of three numbers where two of  the numbers are duplicated? 
For example, $(6,6,3)$.

REPLY [10 votes]: To find the median of any set of numbers, put them in order from smallest to greatest.  If a number occurs more than once, list it more than once.  The number in the middle is the median.  If there is an even number of numbers, the median is the average of the two numbers in the middle.  For your first example, we line them up: $3$,$6$,$6$.  Since $6$ is in the middle, it is the median.