Cindy has 17 coins, all (D) dimes and (N) nickels. The total amount is $1.15. How many nickels and dimes does Cindy have?

I need work shown please.