Ms. Aniston asked seven students in her class to collect pet food cans for a local animal shelter. The dot plot shows the number of food cans collected by each student. Each dot represents one student.

A dot plot plots pet food can collection by students. 2 students collected 6 cans, 2 students collected 7 cans, 2 students collected 9 cans, and 1 student collected 8 cans.

What is the median of the data set?

A.
7
B.
8
C.
6
D.
9

The median is the middle value of a data set when the values are arranged in order. Since there are seven students in total, the median would be the fourth value.

Arranging the values in order, we have: 6, 6, 7, 7, 8, 9, 9.

The fourth value is 7, so the median of the data set is 7.

Therefore, the correct answer is A. 7.