At a scrapbooking party, guests brought a certain number of photographs to use, based on how many pages they will be assembling. Diane plans to assemble 7 small pages and 4 large pages and brought a total of 34 photographs to use. Ellie brought 54 photographs, which is enough to assemble 7 small pages and 8 large pages. Assuming that the number of photographs on a page remains constant, how many photographs fit on a small page and a large page?