John Cena has 20 coins consisting of nickels and dimes. If his nickels were dimes and his dimes were nickels he would have 70 cents more. How much are his coins worth?
so i did $$x+y=20$$ $$2x+y=70+x+y$$ $$x=70$$ $$y=-50 $$
but this obviously isnt the answer and i don't know what to do i need help
Hint: Use the equations $$n+d=20$$ and $$n+0.5d=0.5n+d+7$$ If you need further elaboration I will explain.