To answer this question you should begin with the coin that has a higher value. If you start with the dime and then just add the correct number of pennies to total $0.40, you will see that you will need 3 dimes ($0.30) and 10 pennies ($0.10).
I used a guess and check strategy starting with 2 dimes.
1788.11. Because the 0 will go to 1 because of the 6