Let x g and y g be the weight of 18-carat and 12-carat gold respectively.
As per the given condition
And
Multiplying (ii) by 2 and subtracting from (i), we get
Now, putting x = 80 in (ii), we have
Hence, the required weight of 18-carat and 12-carat gold bars are 80 g and 40 g respectively.