Question 1006469
.
<pre>
Mathematical model is the system of these two equations:

{{{(s-1 + g)/7}}} = {{{s-1}}},

{{{(g-2 + s)/5}}} = {{{s}}}.

where s is the number of silver balls and g is the number of golden balls in the bag initially.

Could you solve it yourself?
</pre>