We are given a double-entry table where it can be seen the number of students that have allergies and/or asthma.
The last column is the total of all students that have asthma or not and the last row is the total students that have allergies or not. The last cell is the total number of students recorded in the table.
In the column "Don't have allergies" there is a question mark that should be a number. That cell also belongs to the second row. We must fill that cell with a number that makes both totals to be correct.
To make 21 students that don't have allergies, we need to fill that question mark with the number 6 (15 + 6 = 21).
Note that it also makes the numbers add up correctly in the second row (40 + 6 = 46)
Thus, the correct choice is 6