The teacher agrees to order pizza for the class. For every student in the class, she will buy 2 pieces of cheese and 1 piece of onion and they will eat exactly that amount. A large pizza has 18 slices. She orders 6 total pizzas and there are 8 pieces of cheese and 4 pieces of onion leftover. How many students are in the class?
Cheese pizzas are 2/3 of the pizza's purchased because 2 / (2+1) = 2/3.
She buys 4 cheese pizzas because 6 x (2/3) = 
<gadget id="calculator">6*2/3</gadget>
<output>4</output>
4.
These give her 72 pieces of cheese pizza because 4 x 18 = 
<gadget id="calculator">4*18</gadget>
<output>72</output>
72.
The students at 64 pieces of cheese because 72 - 8 = 
<gadget id="calculator">72-8</gadget>
<output>64</output>
64.
There are 32 students in her class because 64 / 2 = 
<gadget id="calculator">64/2</gadget>
<output>32</output>
32.

<result>32</result>