Let the Cost Price of the item be 100.
CP = 100
The shopkeeper fixes the marked price 100% above the cost price.
MP = CP + 100% of CP
MP = 100 + 100 = 200
To gain 88%, the item must be sold for 88% more than the cost price.
SP = CP + 88% of CP
SP = 100 + 88 = 188
The discount is the difference between the Marked Price and the Selling Price.
Discount = MP - SP
Discount = 200 - 188 = 12
The discount percentage is always calculated on the Marked Price (MP).
Discount % = (Discount / MP) × 100
Discount % = (12 / 200) × 100
Discount % = 6%