Explore around a bit. Every mushroom has a symbol on it. You'll see gates that have this symbol and a combination of colours that should be used in the mushroom with the respective symbol.
You just have to play a minigame before it gives you the answers.