If a commodity is sold at a 10% discount on the price, it will make a profit of 25 yuan. If it is sold at a 20% discount on the price, it will lose 20 yuan. How much is the purchase price of the commodity

If a commodity is sold at a 10% discount on the price, it will make a profit of 25 yuan. If it is sold at a 20% discount on the price, it will lose 20 yuan. How much is the purchase price of the commodity

Set the price as X
0.9x-25=0.8x+20
Find out X
And bring in 0.9x-25
That is the purchase price