The number seats granted to each state and the size of each district within each both based on which criteria?

The number seats granted to each state and the size of each district within each both based on which criteria class=