Niko is putting 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 he can make if he has 39 red and 52 green?
A.
39
B.
13
C.
4
D.
3