Two alloys of iron have different percentage of iron in them.The first one weighs 6kg and second one weighs 12kg .One piece each of equal weight was cut off from both the alloys and the first piece was alloyed with the second alloy and the second piece alloyed with the first one.As a result the percentage of iron became the same in the resulting two new alloys.What was the weight of each cut-off piece?