There are two ingots of different alloys of copper and tin weighing 6 kg and 12 kg, respectively. Identical pieces were cut from each of them, and the first piece was fused with the remnants of the second ingot, while the second piece was fused with the remnants of the first ingot. As a result, the ratio of copper to tin in the two new ingots was the same. Find the weight of each of the cut pieces.