If a commodity is sold at 20% discount, it will lose 832 yuan. How much is the cost of the commodity?

If a commodity is sold at 20% discount, it will lose 832 yuan. How much is the cost of the commodity?

Cost X
0.8(x+960)=x-832
0.8x+768=x-832
x-0.8x=768+832
0.2x=1600
x=8000