It's difficult to figure out how to play the game, but after a bit I realized that the 3 bubbles in the bottom left hint at which elements will form a line when placed next to each other. And with that I was able to win!
I still don't really understand the mixing mechanic, but with some more work I could see this game being really interesting!