In more detail
The expenditure approach adds consumption, investment, government spending and net exports: GDP = C + I + G + (X − M). For C = 12,000, I = 3,500, G = 4,000, X = 2,500 and M = 3,000, GDP is 19,000. Dividing by population gives GDP per capita.