If you are given the selling price and percentage for eg selling price $20 and markup of20% and you are required to find the cost price you know that if cost price is 100% selling price will be 120% and hence you will get your cost price by multiplying 100 into $20 and divide it by 120!