To solve this problem, we need to determine the value of x, which represents the amount of money Tim won in the raffle.
We know that Tim gave away 20% of the money he won, which means he kept 80% of it.
Let's set up the equation:
80% of x = $80 (the amount Tim kept)
To solve for x, we can divide both sides of the equation by 80% (or 0.8):
x = $80 / 0.8
x = $100
The value of x is $100.
#### 100
The answer is: 100
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Tim won a $x raffle.  He gave away 20% to his friend. He kept 80.

### Answer:
