The answer is 18 hope this helps .
It is called social stratification. The idea of social stratification is frequently utilized and deciphered diversely inside particular hypotheses. In human science, for instance, advocates of activity hypothesis have recommended that social stratification is ordinarily found in created social orders, wherein a predominance chain of command might be fundamental with a specific end goal to keep up social request and give a steady social structure. Supposed clash hypotheses, for example, Marxism, point to the detachment of assets and absence of social versatility found in stratified social orders.
Its becuase people of some countries wanted that each and every person of that country should be equal, as they wanted that each and every person, whether a foreigner or born in that country if wanted to be a citizen of that country, they should be. And especially because in ancient times, the usefulness and strength of woman was not being recognised by people, and many people had the wrong idea that men are superior to women and should always be discriminated...this was also the condition with the unequality on the basis of the ranks of people and the property they owned. the rich people were always supported, the middle class people,were dicriminated little, but weren't recognised even though they were great minds, and the poor people were highly dicriminated. So, many countries adopted democracy.
i hope i helped..