Theory
Cost price is what an item was bought for; selling price is what it was sold for. If selling price is larger, profit = selling price − cost price. If it is smaller, loss = cost price − selling price.
Percentage profit or loss uses the original cost price as its base: difference ÷ cost price × 100%. The selling price is not the denominator unless a question explicitly asks for a percentage of the selling price.
For a £40 item sold for £50, profit is £10 and percentage profit is 10/40 × 100% = 25%. Keep the £10 money profit separate from the 25% rate.
For a £60 item sold for £45, loss is £15 and percentage loss is 15/60 × 100% = 25%. Both percentages happen to match here, but their cost prices differ.
If the percentage is given, use a multiplier: 20% profit means selling price = cost price × 1.20; 20% loss means × 0.80. State whether the final value is a price, money profit or percentage.