Emily has a collection of ribbons in three different colors: red, blue, and green. She has $\frac{1}{3}$ as many red ribbons as blue ribbons and twice as many green ribbons as blue ribbons. If she has 24 blue ribbons, how many ribbons does she have in total? Let's think step by step and output the final answer within \boxed{}.
user