Twelve pens and 16 pencils will be placed in bags with an equal number of each item. What is the most number of bags that can be made?