A chef used 6 cups of flour for every 2 cups of sugar to bake a cake. If he uses 12 cups of sugar, how many cups of flour did he use?