Victor baked 30 chocolate chip cookies, 18 peanut butter cookies, and 24 sugar cookies. He wants to split them into equal and identical bags to sell at the bake sale. What is the greatest number of bags of cookies Victor can make?