Sarah has 24 marbles in her collection. She has three times as many red marbles as green marbles. The rest of her marbles are blue. If Sarah has 6 blue marbles, how many red marbles does she have? Let's think step by step and output the final answer within \boxed{}.
user