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