Question of the Day

For Halloween, Mr. Frank prepared bags of treats to give to trick or treaters. He had 36 pieces of candy and 48 pieces of gum. If he used all the candy and gum and put the same ratio of candy to gum in each bag. What is the largest number of bags he could have made?