If the price of a commodity is 800 yuan, if it is sold at a 10% discount, it will still make a profit of 20%. Suppose the purchase price is x yuan, what will it be according to the equation?

If the price of a commodity is 800 yuan, if it is sold at a 10% discount, it will still make a profit of 20%. Suppose the purchase price is x yuan, what will it be according to the equation?

Let the purchase price be x yuan
The price after 10% discount is 800 * 0.9
9-x is equal to 20% of the purchase price x
800*0.9-x=20%*x