A man bought an article for Rs. x and sold it for Rs. 16. If his loss was x percent, find the cost price of the article.