The Johansen family wants to donate some supplies to the science teacher. They have purchased 18 test tubes and 6 pairs of goggles. They want to package the supplies in sealed bags, and they want every bag to have the same amount of supplies. They want to use up all of the items. What is the greatest number of bags that they can make with these science supplies?