Anna has made 30

chocolate chip cookies and 24

sugar cookies. She wants to put them in bags for her friends with the same number of cookies in each​ bag, the same kind of cookies in each​ bag, and no cookies left over. What is the greatest number of cookies she can put in each​ bag?