Sarah has a budget of $50 to spend on snacks for a party. She decides to spend 30% of her budget on chips, 40% on drinks, and the rest on candies. If each bag of chips costs $3, each drink costs $2, and each pack of candies costs $5, how many items of each type did Sarah buy? Let's think step by step and output the final answer within \boxed{}.
user