Let the number of gold coins in the original collection be g and the number of non-gold coins be n. According to the problem, the ratio of gold coins to non-gold coins is 1:3, so:
g=31⋅n or n=3⋅g.
Next, 10 more gold coins are added to the collection, so the number of gold coins becomes g+10, and the number of non-gold coins remains n. The new ratio of gold coins to non-gold coins is given as 1:2, so:
n(g+10)=21.
Now, substitute n=3⋅g into the equation:
(3⋅g)(g+10)=21.
To solve for g, cross-multiply:
2⋅(g+10)=3⋅g.
Expand the equation:
2⋅g+20=3⋅g.
Subtract 2⋅g from both sides:
20=g.
So, there are initially 20 gold coins. Using n=3⋅g, the number of non-gold coins is:
n=3⋅20=60.
Thus, the total number of coins before adding the 10 gold coins is:
g+n=20+60=80.
After adding the 10 gold coins, the total number of coins is:
g+10+n=20+10+60=90.
Therefore, the total number of coins in the collection now is:
90.