A teacher is making gift bags. Each bag is to be filled with pencils and stickers. The teacher has 45 pencils and 99 stickers to use. Each bag will have the same number of each item, with no items left over. What is the greatest number of pencils and stickers she can use in each bag with none leftover?