Answer:
75 grams
Explanation:
Let's call the amount of the 20% liquid-gold solution the wizard drains of solution as "x" grams.
Note: A wizard had only 20% liquid gold solution,
Drain amount of gold =20% of x grams = 0.2x grams
Initial amount of gold = 20% of 300 grams = 0.2 * x= 60 grams
Final amount of gold = 35% of 300 grams = 0.35 * 300 = 105 grams
Replacement amount of gold = 80% of solution = 0.80*x = 0.8x grams
The equation for the amount of gold in the solution after the changes is:
initial gold - drained gold + replacement gold = final gold
60 - 0.2x + 0.8x = 105
Combine the like terms
0.6x= 105 - 60
0.6 x = 45
Divide by -0.2 to isolate "x":

x = 75
Since grams should be in positive,
so, x = 75
The wizard should drain 75 grams of the 20% liquid-gold solution and replace it with an 80% liquid-gold solution.