A bakery packages cookies in two sizes of boxes, one with 18 cookies and the other with 24 cookies. A small number of cookies are to be wrapped in cellophane before they are placed in a box. To save money, the bakery will use the same size cellophane packages for each box. How many cookies should the bakery place in each cellophane package to maximize the number of cookies in each package?