Mary brought 50 stickers to class. She gave 4 stickers to each of her 5 friends. She gave everyone else in class two stickers each. If she has 8 stickers left over, how many students are in the class, including Mary?
She gave out 50 - 8 = 
<gadget id="calculator">50-8</gadget>
<output>42</output>
42 stickers in total.
She gave 4 * 5 = 
<gadget id="calculator">4*5</gadget>
<output>20</output>
20 stickers to her friends.
She gave out 42 - 20 = 
<gadget id="calculator">42-20</gadget>
<output>22</output>
22 stickers to the rest of the class.
This means there are 22 / 2 = 
<gadget id="calculator">22/2</gadget>
<output>11</output>
11 other students in the class.
There are a total of 1 + 5 + 11 = 
<gadget id="calculator">1+5+11</gadget>
<output>17</output>
17 students in the class.

<result>17</result>