10X/ 10-8 = 2×( 1- 10%)
X=9.8 means that you should get a discount of 9.8.
Equation explanation: Book profit is pricing-cost (10-8), and 10% profit is profit (1- 10%).
Discount: for example, a 30% discount is actually the cost ×0.3, so it is more 10.