Save users coins/global variables for later use?

How do I save coins/global variables?

I’m trying to make a sports game. I’m quite new and was wondering how saving variables work for mobile. So basically I want a user to choose a team. Once they do, they select a player. There is one starting player but the others you need coins to play with. They get coins by winning a game. How could I save the coins so that they will always have it when they play the next day after closing the game? Also, once they unlock players with the coins, how do I save the player as unlocked for future uses? Thanks!

I believe all is explained here: