Answer:
39.5
Step-by-step explanation:
We put the numbers in order least to greatest and pick the middle one because that number is the median:
36, 38, 39, 39, 40, 47, 48, 51
Since 39 and 40 are tied for the median we go in between those two numbers, 39.5. The answer is 39.5.