You are filling bags with cookies to give your friends. You have 18 chocolate chip cookies and 24 peanut butter cookies. You want identical groups of cookies in each bag with no cookies left over. What is the greatest number of bags you can fill? (Please fill in the blank: Each bag will have _____ cookies.)