A shopping mall decided to sell a certain kind of clothing at a discount because of the season change. If each garment is sold at a 50% discount on the price, it will lose 20 yuan, while if it is sold at a 20% discount on the price, it will earn 40 yuan. Question: (1) how much is the price of each garment? (2) How much is the cost of each garment?

A shopping mall decided to sell a certain kind of clothing at a discount because of the season change. If each garment is sold at a 50% discount on the price, it will lose 20 yuan, while if it is sold at a 20% discount on the price, it will earn 40 yuan. Question: (1) how much is the price of each garment? (2) How much is the cost of each garment?

(1) The price of each garment is x yuan, according to the meaning: 0.5x + 20 = 0.8x-40, the solution is: x = 200; (2) the cost of each garment is: 0.5x + 20 = 0.5 × 200 + 20 = 120, answer: the price is 200 yuan, the cost price is 120 yuan