Nico is put in colored marbles in goodie bags for his birthday party each bag must include both red and green marbles what is the greatest number of bags you can make if he has 39 red and 52 green?