How to get discounted price first and then we get the selling price.

Kindly help its urgent.