You first have to put the numbers in order, which you get 30, 32, 36, 38, 42, 46, 47, and 51.
Then, you find the middle number, which is 38 and 42. You then have to add those two numbers and then divide it by 2 in order to get the median.
So you get 40 as your final answer.
I hope this helps :)
(Can I have brainliest answer if I can? Thanks)