To find the median of the data, we need to first arrange the numbers in order from smallest to largest:
65, 65, 124, 129, 180, 190, 228, 285, 285, 316, 370, 370
There are 12 numbers in the sample, so the median will be the middle value. In this case, there are two middle values because there are an even number of data points. To find the median, we take the average of the two middle values:
median = (180 + 190)/2 = 185
So the median number of pieces in the sample of building toys is 185.