A baker has 24 sesame bagels and 36 plain bagels to put into boxes each box must have the same number of each type of bagel what is the greatest number of boxes that the baker can make using all of the bagels? How many of each bagel will be in each box?