Answer:
The piece is 20 m long and costs $10 per meter
Explanation:
The total cost of the cloth in $ can be expressed as
C = xu
Where x is the length of the cloth in m, and u is the unit cost in $/m
The problem states that if the length was 5 meters more and the unit cost was $2 less, the cost would not change, that is
C = (x+5)(u-2)
Operating:
C = xu-2x+5u-10
Since C = xu, then
-2x+5u=10 [1]
We also know that
xu=200 [2]
Isolating u in [1] we get

Replacing into [2]

Simplifying

Factoring
(x-20)(x+25)=0
Which gives x=20, x=-25. We can only use the positive value of x, so
x=20 m and therefore
u=200/20=10$
So the piece is 20 m long and costs $10 per meter