For this problem, we are told the price of a 4-foot long rectangle fabric. If we assume that a similar rectangle of fabric is 24 feet long, we need to calculate its cost.
The area for a rectangle is given below:

For two rectangles to be simillar, their dimensions must be related by a constant ratio. Therefore we have:

Which means that each side is increased by a ratio of 6 from the original rectangle. The second rectangle must be:

The area of the second rectangle is 36 times the one of the first. Therefore the price should be 36 times as well. We have:

The cost of the second one will be $594.