# How new money flow work in country?

I want to find out how money flow works in the country. Imagine I leave in country X. Country has 100$in general, 50 dollars have a government, 50 dollars have peoples. My part is 10 dollars, this means that other peoples have 40 dollars, I am an entrepreneur,I've made goods on 10 dollars, peoples, buy it, they have spent , 20 dollars for my goods, they have less money on 20 , Then I pay tax from this amount , for example 5 dollars, let's do the math General - 100$$government - 50$$ me - 10$$peoples - 40$$  I've earned 20$ , peoples spend 20 dollars, I've paid 5 dollars tax

general - 100$$government = 55$$
me - 25 dollars
peoples = 20 dollars


country pay salary to peoples to return this 20$to peoples back general = 100 dollars government = 35 dollars me = 25 dollars people = 40$


This mean that governent (budget) , have less money, and even If I will pay in future some tax from next iteration , it will not cover 20\$ dollars which they paid to people, how then government compensate it ? Or I've misunderstood the process ?