Mabel has 8 coins, all of which are dimes and pennies. In all, they're worth 35¢. How many of each kind of coin does Mabel have?