Answer:
Emily has 12 dimes and 8 nickels.
Explanation:
Emily has a total of 20 coins.
Let d be the number of dimes she has and n the number of nickels:
![d + n = 20\\d= 20 - n](https://img.qammunity.org/2020/formulas/mathematics/middle-school/f326vlteql79y2mg0c3hsgtiw3vf0qtzb0.png)
Dimes are worth 10 cents and nickels are worth 5 cents, therefore the amount she has and what she would have if the dimes were nickels and nickels were dimes are, respectively:
![d*10 + n*5\\d*5 + n*10](https://img.qammunity.org/2020/formulas/mathematics/middle-school/oyt34eqb898qlw1pjlo7cbi471va9dizss.png)
Since she would have 20 cents less in the second option, the following equation can be written:
![d*10 + n*5 = d*5 + n*10 + 20\\5(20-n) - 5n = 20](https://img.qammunity.org/2020/formulas/mathematics/middle-school/59j03bagncvmg2y6nkymb6f6suhn7t1ykg.png)
Substituting (d = 20 - n) into this equation yields:
![5(20-n) - 5n = 20\\10n=80\\n=8\\d=20 - 8\\d = 12](https://img.qammunity.org/2020/formulas/mathematics/middle-school/4xo9scptlv9953rioegtumiofuugsixpdv.png)
Emily has 12 dimes and 8 nickels.