We know that John hits 70% of his free throws, which means he makes 70/100 * 2 = 1.4 shots for every foul.
He gets fouled 5 times a game, so he gets 5 * 1.4 = 7 free throws per game.
If he plays in x% of the 20 games the team plays, then he plays in (x/100) * 20 = 0.2x games.
The total number of free throws he gets is the number of games he plays multiplied by the number of free throws per game: 0.2x * 7 = 1.4x.
We are given that the total number of free throws he gets is 112, so we can write: 1.4x = 112.
Dividing both sides by 1.4, we get: x = 80.
The value of x is 80.
#### 80
The answer is: 80
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
John hits 70% of his free throws.  For every foul he gets 2 shots.  He gets fouled 5 times a game.  How many free throws does he get if he plays in x% of the 20 games the team plays?
If we know the answer to the above question is 112, what is the value of unknown variable x?

### Answer:
