A shopping mall is ready to sell a kind of clothes at a discount due to the change of season. If it is sold at 75% off the fixed price, it will pay 25 yuan. If it is sold at 10% off the fixed price

A shopping mall is ready to sell a kind of clothes at a discount due to the change of season. If it is sold at 75% off the fixed price, it will pay 25 yuan. If it is sold at 10% off the fixed price

A shopping mall is ready to sell a kind of clothes at a discount due to the change of season. If it is sold at 75% discount, it will lose 25 yuan. If it is sold at 10% discount, it will earn 20 yuan. How much is the price and purchase price of this kind of clothes?
Purchase price - 25 = selling price * 0.75
Purchase price + 20 = selling price * 0.9
X-25=0.75Y X=0.75Y+25
X+20=0.9Y X=0.9Y-20
0.75Y+25=0.9Y-20
0.15Y=45
Y = 300 price
X = 250 purchase price