The old pirate has x gold coins, which he wants to spread equally across 5 chests. So each chest will have x/5 gold coins.
He also has a total of 500 silver coins, which he wants to distribute equally across the chests. So each chest will have 500/5 = 100 silver coins.
He has twice as many bronze coins as silver coins, so he has 2*500 = 1000 bronze coins.
He wants to distribute the bronze coins equally across the chests. So each chest will have 1000/5 = 200 bronze coins.
The total number of coins in each chest is the sum of the number of gold, silver, and bronze coins: x/5 + 100 + 200.
We are given that the total number of coins in each chest is 1000, so we can write: x/5 + 100 + 200 = 1000.
Simplifying the left side, we get: x/5 + 300 = 1000.
Subtracting 300 from both sides, we get: x/5 = 700.
Multiplying both sides by 5, we get: x = 3500.
The value of x is 3500.
#### 3500
The answer is: 3500
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
An old pirate wants to leave his treasure on an island. He has x gold coins. He wants to spread this equally across 5 chests. Additionally, he will put a total of 500 silver coins and twice as many bronze coins as silver, all distributed equally across the chests. How many coins in total will be in each chest?
If we know the answer to the above question is 1000, what is the value of unknown variable x?

### Answer:
