In a conference room, there are 10 different types of chairs and 40 chairs in total. If each type of chair must appear at least once, what is the minimum number of chairs that must be selected to ensure that at least one type of chair appears at least 5 times? Let's think step by step and output the final answer within \boxed{}.
user