Answer:
Alloy A weighs 18 g
Alloy B weighs 6 g
Explanation:
Let the weight of Alloy A be "x" g and Alloy B be "y" g.
It is given that Alloy A is composed of 3 parts gold and 1 part silver and Alloy B is composed of 1 part good and 3 parts silver.
The total gold is given by,
=
= 15 g
The total silver is given by,
=
= 9 g
adding both the equations we get,

and subtracting we get,

Thus, by solving we get,
x=18 and y=6.