A math textbook with a double-digit number of pages is split into sections. Each section is exactly $12$ pages long, with the exception of the epilogue, which is $11$ pages long. Every page belongs to a section. Furthermore, on the bottom of each $5$th page, a trivia fact is presented on the bottom of the page, starting from the fifth page. If a trivia fact appears on the bottom of the second-to-last page, then how many pages does the textbook have?

Let's think step by step and output the final answer within \boxed{}.
user