To calculate the per capita GDP, you divide the GDP by the population.
\[ \text{Per Capita GDP} = \frac{\text{GDP}}{\text{Population}} = \frac{50,000,000 \text{ dollars}}{20,000 \text{ people}} = 2,500 \text{ dollars} \]
The per capita GDP of the country is 2,500 dollars.