A shopkeeper purchased some goods for Rs.900 and sold one-third of the goods at a loss of 12%, then at what gain % should the remaining goods to be sold to gain 18% profit on the whole transaction?