Question 947019
d and q, count of each coin;


{{{system(0.1d+0.25q=5,d-q=8)}}}


Handle the money equation.
{{{10d+25q=500}}}
{{{2d+5q=100}}}


This system is simple to solve:
{{{system(2d+5q=100,d-q=8)}}}