A recipe for a cake requires flour, sugar, and butter in the ratio of 3:2:1 by weight. If you have 300 grams of flour, how much sugar and butter do you need to keep the ratio consistent? Let's think step by step and output the final answer within \boxed{}.
user