You should read Plato's Republic and Aristotle's Politics. This was a known problem 2,400 years ago.

https://classics.mit.edu/Aristotle/politics.html

https://www.sciencetheearth.com/uploads/2/4/6/5/24658156/pla...