The core concept used is the relationship between Cost Price (CP), Selling Price (SP), Profit, and Loss percentages. SP = CP (1 + Profit%/100) or SP = CP (1 - Loss%/100).