Ingredients will drop at random onto the puzzle board. Either get them to drop off the bottom of the board, swipe, or double-tap them. Swiping or double-tapping will result in a 3x3 blast, clearing gems, or damaging hazards.
Note that some ingredients are more rare than others. Collected ingredients will only be claimed if you win the puzzle. Ingredients that remain on the board after completing the puzzle are not claimed.