If a recipe requires 2/3 cup of sugar for every 1/2 cup of flour, how many cups of sugar are needed if you use 3 cups of flour? Let's think step by step and output the final answer within \boxed{}.
user