Please reason step by step, and put your final answer within \boxed{}.
Mary brought some stickers to class. She gave 4 stickers to each of her 5 friends. She gave everyone else in class two stickers each. She has 8 stickers left over. There are 17 students in the class, including Mary. How many stickers did Mary bring to class?
user