Shops print a marked price (MP), take a discount off it, and then add GST on the price after the discount. Written as one line:
Final price = MP × (1 − discount%) × (1 + tax%)
GST profit loss problems in exams always state the tax rate in the question, so use the rate given rather than any rate you remember. Rates have changed over time; the arithmetic has not.
Worked example 1: 10% off, then 12% tax
MP ₹2,000. After the discount: 2,000 × 0.9 = 1,800. With tax: 1,800 × 1.12 = ₹2,016.
Worked example 2: does the order change the bill?
2,000 × 1.12 × 0.9 = ₹2,016, the same total, because multiplication can be done in any order. The tax amount, though, is 12% of the discounted 1,800, which is ₹216, not 12% of 2,000.
With more than one discount, apply them one after another before the tax. See successive discounts.
Worked example 3: two discounts and a tax
MP ₹5,000, discounts of 20% and 10%, tax 5%. 5,000 × 0.8 × 0.9 = 3,600, and 3,600 × 1.05 = ₹3,780.