If you sell a commodity at a discount of 75%, you will lose 25 yuan. If you sell it at a discount of 10%, you will earn 20 yuan. What's the price?

If you sell a commodity at a discount of 75%, you will lose 25 yuan. If you sell it at a discount of 10%, you will earn 20 yuan. What's the price?

Set a price of X Yuan
90%x-75%x=20-(-25)
15%x=45
0.15x=45
x=45/0.15=300
So the price is 300 yuan
The cost can also be calculated
Let the cost be y yuan
90%x=y+20
0.9*.300=y+20
y=270-20=250
The cost is 250 yuan