Sarah has a collection of nickels and dimes. The total number of coins she has is 50, and the total value of the coins is $4.35. How many nickels and how many dimes does Sarah have? Let's think step by step and output the final answer within \boxed{}.
user