Jim buys a wedding ring for $10,000.
He gets his wife a ring that is twice that much, which means he spends 2 * $10,000 = $20,000 on the second ring.
He sells the first ring for x% of its value, which means he sells it for (x/100) * $10,000.
The total amount he is out of pocket is the sum of what he spends on the second ring and what he loses from selling the first ring: $20,000 + (x/100) * $10,000.
We are given that the total amount he is out of pocket is $25,000, so we can write: $20,000 + (x/100) * $10,000 = $25,000.
Simplifying, we get: $20,000 + $100x = $25,000.
Subtracting $20,000 from both sides, we get: $100x = $5,000.
Dividing both sides by $100, we get: x = 50.
The value of x is 50.
#### 50
The answer is: 50
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
Jim buys a wedding ring for $10,000.  He gets his wife a ring that is twice that much and sells the first one for x% its value.  How much is he out of pocket?
If we know the answer to the above question is 25000, what is the value of unknown variable x?

### Answer:
