Rey collected three glasses of colored marbles. the first glass has 27 red marbles, the second has 36 green marbles, and the third has 54 blue marbles. he placed the marbles into a set of boxes of each kind. what is the greatest number of marbles that he can put equally inside each box?