To solve this problem, we need to determine the value of x, which represents the number of calories Peter wants to eat.
We know that each chip has 10 calories. Let's find out how many calories are in a bag of chips:
Number of chips in a bag * Number of calories per chip = Total number of calories in a bag
24 chips * 10 calories per chip = 240 calories
We also know that Peter has to spend $4 on chips. Since the bag of chips costs $2, Peter can buy 2 bags of chips for $4. Therefore, he can consume twice the number of calories in 2 bags of chips, which is 2 * 240 calories = 480 calories.
Therefore, the value of the unknown variable x is 480. Peter wants to eat 480 calories.
The value of x is 480.
#### 480
The answer is: 480
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Peter is eating chips. Each chip is 10 calories. A bag has 24 chips and costs $2. If he wants to eat x calories, He has to spend 4 on chips.

### Answer:
