Mary has $4.00 in nickels, dimes, and quarters. If she has twice as many dimes as quarters and forty-seven more nickels than dimes, how many coins of each type does she have?