Is the price of a piece of cloth a function of the length of the cloth?

yes because of the cloth