Short answer: Impossible. Pokémon Yellow does not have slot machines or any gambling minigames whatsoever.
Only Red/Blue/Green (Japanese versions) featured the Game Corner in Celadon City with slot machines for coins → prizes (TMs, Porygon, etc.). Yellow removed it entirely due to Japanese gambling law changes at the time.
If you're playing Yellow: Focus on catching, battling, and trading. There are no slots to play—your coins stay in your bag (or don't exist at all).