Sam, Jill, and Tom are working on a school project. Sam contributes 8 pages, and Tom contributes 15 pages. If the total project has 30 pages, how many pages did Jill contribute? Let's think step by step and output the final answer within \boxed{}.
user