A business has 1000 kg of rice, part of which he sells at 8% profi and rest at 18% profit. He gains 14% on the whole. How much rice did he sell at 18% profit?