A recipe requires a ratio of 3 parts flour to 2 parts sugar. If you have 18 cups of flour, how many cups of sugar do you need? Also, if you end up using only 12 cups of flour, how many cups of sugar will you need then? Let's think step by step and output the final answer within \boxed{}.
user