The percentage of profit can be calculated by means of the following expression:
Where the sale is the sale price and cost is the cost at which the article was bought. In this case, the cost is $30 and the sale price is $45. By replacing 30 for cost and 45 for sale into the above expression, we get:
Then, the profit percent is 50% (0.5)