You earn $30 for painting a fence, spend $20 on a game, and give $8 to your friend. You have $16 left. Write an equation and define the variable to show how much money you started with?