Jimmy and Jamy

Jimmy and Jamy are two brothers. They like to play with colored marble.

Jimmy has N boxes with three different colors (red, green, and blue) marble. Each box contains one or more red, green, and blue color marble.

This is a companion discussion topic for the original entry at https://toph.co/p/c-jimmy-and-jamy