system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5 - How did China go from a poor country to the world's second biggest economy in 30 years?

I know that there is still a long way for China to go but how did it get so seemingly rich and powerful?  Did people in western countries just give it money even though it is considered a brutal regime?  Thank you for helping me understand this.
gpt
The answer is that China is still largely a poor country, it is just so big that that many people together have a large total amount of money, stuff, and labor.  China is kind of two different countries at this point, an industrialized, moderately wealthy one on the coast, and a poor, farming country in the interior.