To find the median price, we first need to arrange the prices in order from least to greatest. The prices given are:
$28, $36, $40, $30, and $28.
Arranging these in order, we get:
$28, $28, $30, $36, $40.
Next, we find the median. The median is the middle number in a sorted list. Since there are 5 numbers in this case, the median will be the third number:
$28, $28, $30, $36, $40.
Therefore, the median price is $30.
The correct answer is:
B. $30