John takes x days off of streaming per week, which means he streams for 7 - x days.
On the days he does stream, he streams for 4 hours at a time, so he streams for 4 * (7 - x) hours in total.
He makes $10 an hour, so he makes 10 * 4 * (7 - x) = 40 * (7 - x) dollars in total.
We are given that he makes $160 in a week, so we can write: 40 * (7 - x) = 160.
Dividing both sides by 40, we get: 7 - x = 4.
Subtracting 7 from both sides, we get: -x = -3.
Multiplying both sides by -1, we get: x = 3.
The value of x is 3.
#### 3
The answer is: 3
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
John takes x days off of streaming per week.  On the days he does stream, he streams for 4 hours at a time and makes $10 an hour.  How much does he make a week?
If we know the answer to the above question is 160, what is the value of unknown variable x?

### Answer:
