The ratio of flour to sugar for the banana bread recipe is 3 to 2. If 3 cups of sugar are used, then how many cups of flour are needed?