If 5% more is gained by selling an article for Rs. 350 than by selling it for Rs. 340 , the cost of the article is: