Little Billie breaks open his piggy bank and finds that he has 261 coins. There are 10 pennies, 1 nickel and the rest are all dimes and quarters. His net coinage is $39.40. How many dimes and quarters did he have?​