The median number means the middle number. Before finding the middle number, you must line up the numbers from decreasing to increasing size:
4, 5, 8, 9, 10
Then, simply find the number in the middle. Since there are five numbers in this list, the middle number will be the third one: 8.