Why did the constructional convention agree to the three fifths compromise?

TO create a government with a bicameral legislature
To settle debates over the issues of counting the enslaved population for representation
To create a government based on the principle of federalism

To settle debates over the issues of counting the enslaved population for representation.