We assign fruits to kids in a line. Starting from the first kid, we assign pears to every three kids (1,4,7...). Starting from the last kid, we assign apples to every five kids. Nine kids get both pear and apple. How many kids here?