To solve this problem, we need to determine the value of x, which represents the amount of money Nick wants to raise for the charity.
Let's break down the information given:
Cost of each candy bar: $5
Number of candy bars Nick needs to sell: 160
Cost of each chocolate orange: $10
Number of chocolate oranges Nick sold: 20
We can set up the equation as follows:
Cost of each candy bar * Number of candy bars + Cost of each chocolate orange * Number of chocolate oranges = Total amount raised
$5 * 160 + $10 * 20 = x
Let's simplify and solve for x:
$800 + $200 = x
$1000 = x
The value of x is $1000.
#### 1000
The answer is: 1000
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Nick is trying to raise money for a charity. He is selling candy bars for $5. He is also selling chocolate oranges for $10. He wants to raise x. He only had 20 chocolate oranges that he sold out. Nick needs to sell 160 candy bars to reach his goal. What is the value of unknown variable x?

### Answer:
