An author has 18 pages to send to a publisher. The author has only small envelopes and can't fit all the pages into a single envelope. It ends up taking 6 envelopes to hold all the pages. If each envelope has the same number of pages in it, how many pages are there in each envelope?