Mr.Gilliam is packing gift bags. He has 36 notepads and 45 pens. Each gift bag must contain both items. He puts the same number of notepads in each bag, and the same number of pens in each bag. What is the maximum number of gift bags Mr. Gilliam can pack, and how many notepads and pens will each bag have?