How did the cotton gin affect agriculture in the South?

It increased the demand for the labor of enslaved people.

It increased the quality of the cotton but was unable to increase the output.

It decreased the amount of land needed to plant cotton.

It increased the cost of producing cotton, so only the wealthiest farmers could plant it.