<human>:  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?
<bot>: How many stickers did Mary give out? ** She gave out 50 - 8 = <<50-8=42>>42 stickers in total.
How many stickers did Mary give to her friends? ** She gave 4 * 5 = <<4*5=20>>20 stickers to her friends.
How many stickers did Mary give to the rest of the class? ** She gave out 42 - 20 = <<42-20=22>>22 stickers to the rest of the class.
How many other students are in the class? ** This means there are 22 / 2 = <<22/2=11>>11 other students in the class.
How many students are in the class? ** There are a total of 1 + 5 + 11 = <<1+5+11=17>>17 students in the class.
#### 17