The prices of 8 sweaters, in dollars, are given.

Sweater prices (dollars)

$30,$41,$36,$31,$28,$43,$28,$35

What is the median of the data?

A.$28

B.$33

C.$34

D.$35