let
number of nickels = x
number of dimes = y
Therefore,
x + y = 112
The total cost can be represented below
1 dime = 0.1 dollars
1 nickels = 0.05 dollars
Therefore,
0.05x + 0.1y = 7.85
x + 2y = 157
[tex]\begin{gathered} x+y=112 \\ x+2y=157 \\ y=45 \\ \\ x+45=112 \\ x=112-45 \\ x=67 \end{gathered}[/tex]