[tex]x-\ nickels\\
y-\ quarters\\\\
0,05x+0,25y=8,85\\
x+y=49\ \ \ \ x=49-y\\\\\
0,05(49-y)+0,25y=8,85\\
2,45-0,05y+0,25y=8,85\\
0,2y+2,45=8,85\ \ \ | subtract\ 2,45\\0,2y=6,4\ \ \ | divide\ by\ 0,2\\y=32\\\\
x=49-32=17\\\\
He\ had\ 17\ nickels\ and\ 32\ quarters.[/tex]