A nickel is equal to 5 cents or 0.05 dollars.
A quarter is equal to 25 cents or 0.25 dollars.
Let number of nickels be = n
Let number of quarters be = q
[tex]0.05n+0.25q=2.85[/tex] ...........(1)
As it is given, there are 3 more nickels than quarters so equation becomes,
[tex]n=q+3[/tex] ................(2)
Plug in the value of 'n' from (2) in (1)
[tex]0.05(q+3)+0.25q=2.85[/tex]
= [tex]0.05q+0.15+0.25q=2.85[/tex]
[tex]0.30q=2.70[/tex]
[tex]q=9[/tex]
As [tex]n=q+3[/tex] we get, [tex]n=9+3=12[/tex]
Hence, there are 12 nickels and 9 quarters.