system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How do countries do trade with different currencies?

I was thinking about it, and I couldn't figure it out. If say the US bought $500k of product from Germany, what does Germany now do with US Dollars?
gpt
Well it depends on if you’re buying it form
The German government, or. Richard German company.

If it’s a private German company, they might just keep it in a bank account as dollars, or more likely exchange the currency for the equivalent amount of euros with some party (Bank, financial group, whichever, idk exactly how Germans function) that does currency exchange. 

If it’s going straight to the German government, well, chance are they’ll just hold onto it. And then use it whenever they need to buy something from the US, or other countries. US dollars are close to being the accepted global currency on a macro level, pretty much every country has reserves of US dollars stored somewhere. 

This mainly stems from the years of economic dominance the US had post WW2, it was the most stable country so everyone was confident in its currency and wanted to trade with the US.