To find the Median, place the numbers you are given in value order and find the middle number. If there are two middle numbers, you average them.
18, 21, 21, 24, 26, 35, 39, 48
The two middle number are 24 and 26
Average 24 + 26/2 = 25
The median is 25