Given the following list of the number of paintings randomly selected art students created during a watercolor class, find the median.
21,28,30,31,17,16,12