A person has a bag containing dimes and nickels. There are a total of 106 coins in the bag, and the total value of coins is $7.90. How many dimes and nickels are in the bag?