In a homework given to 12 students, the following scores were recorded:
18, 29, 18, 32, 22, 21, 22, 18, 27, 26, 18, 22.
What is the median of the set of scores?​