A homeless shelter received donations of 18 mittens and 12 winter hats. What is the greatest number of identical winter clothing sets that they can make, without any leftover mittens or hats?