Helps calculate which quality items should be sold to reach the 40% threshold.