She gave out 50 - 8 = <<50-8=42>>42 stickers in total.

She gave 4 * 5 = <<4*5=20>>20 stickers to her friends.

She gave out 42 - 20 = <<42-20=22>>22 stickers to the rest of the class.

This means there are 22 / 2 = <<22/2=11>>11 other students in the class.

There are a total of 1 + 5 + 11 = <<1+5+11=17>>17 students in the class.

# Answer

17
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
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?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
17
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?
train