Amy has 6 blue, 2 red, and 4 green books to arrange on a shelf. in how many ways can the books be arranged if books of the same color must be grouped together?