A bag contains nickels, dimes and quarters having a value of $3.75. If there are 40 coins in all and 3 times as many dimes as quarters, how many coins of each kind were there?
PLZ HELP.