
Larry C. answered 01/10/19
Computer Science and Mathematics professional
Let d and n represent the original number of dimes and nickels. Then since the initial ratio was 5:1, d=5n.
After trading, she has d-2 dimes and n+4 nickels and 4(d-2)=9(n+4). By substituting, we get:
4(d-2)=9(n+4) -> 4(5n-2)=9(n+4) -> 20n-8=9n+36 -> 11n=44 -> n=4 and d=20
As a check, after trading she has 8 nickels and 18 dimes which is indeed a ratio of 9:4.