Coins are used for changing the difficulty of the mini-games and for switching a Hidden Object mode to a match-3 mode. Each of these options costs 15 coins.
You can get coins by watching advertisements every five minutes. You can also buy coins in the in-game store.
Gems are needed to unlock an additional chapter in the game. You can also buy them in the in-game store.