To calculate the total number of notebooks in Madison middle school, Mrs. Campbell needs to know the number of students (s) in the school, since each student owns three spiral notebooks. Therefore, the required variable to calculate the total number of notebooks is:
D. s, the number of students at the school.
The total number of notebooks can be calculated using the formula: Total notebooks = s (number of students) × 3 (notebooks per student).