When you specify a game mode and pay the entry fee (in either cash or coins), the matchmaking system then proceeds to find a suitable match or suitable matches (in multi-player mode) for you.
Your opponent(s) is a real person(s) who have also chosen the same game mode, and have a similar skill level as you, where you will play against them in real time, at different times, or against their recorded game play depending on availability.