Five out of 35 (27+5) students wear a fun Pi-Shirt.
Construct a ratio:
5 (people with a fun t-shirt on) 59 (people with a fun t-shirt on)
________________________ =
32 (number of people in one class) x (number of students in the school)
The correct answer is D.