Candis is preparing pencil cases for her friends. Each case needs to have the same number of regular pencils and the same number of mechanical pencils. She has 28 regular pencils and 16 mechanical pencils. If she uses all of the pencils, what is the greatest number of identical pencil cases that she will be able to make?