To determine the median of a data set, we have to arrange first the data in an ascending or descending order.
After arranging, find the middle-most data. Since there are 7 samples in the data, the middle-most would be the 4th data.
Hence, the median is 39.