A merchant has 1000 kg of sugar, part of which he sells at 6% profit and the rest at 16% profit. He