Let's help the gray balls meet the balls of different colors, so that they have the same color. And finally, we can collect these balls into a transparent jar.