Roberta is making gift bags for the homeless shelter. She has 36 bars of soap and 24 bottles of lotion to put into the gift bags. How many bags can Roberta make if she plans to use all of the bars of soap and all of the bottles of lotion with none left over? Please explain how to solve the problem.