A person buys an item for Rs. P and sells it for Rs. Q, thereby gaining R%. The selling price in terms of cost price can be written as: