Proportional representation is a system of allocating seats in the legislature based on