Bill cut out 6 squares and 18 circles . He divided the cutouts into groups so that the same number of squares and circles were in each groups . What is the greatest number of groups he could have made ?