Jacob baked 42 sugar cookies and 30 oatmeal cookies to package for his friends at school. He wants to package the cookies into identical containers so that each container has the same number of cookies. If he uses all of the cookies, what is the greatest number of containers he needs?