A dishonest merchant makes a 15% profit at the time of buying ans a 10% loss at the time of selling the goods he trades . By doing so if the merchant makes a profit of 3,500 on selling the particular goods, what was the real cost of the goods the merchant sold?