A recipe for a special sauce requires ingredients in the ratio of 3:4:5 for sugar, salt, and vinegar respectively. If the total amount of ingredients used is 240 grams, how many grams of each ingredient are needed? Let's think step by step and output the final answer within \boxed{}.
user