A merchant has 310 kg of sugar, part of which he sells at 2% loss and the rest at 8% profit. He gain