For a given recipe, 24 cups of flour are mixed with 12 cups of sugar. How many cups of sugar should be used if 8 cups of flour are used?