Jordan purchased a piece of fabric that is 18cm by 18cm in order to make a tent for her little sister's dolls

. She plans to fold the fabric in half diagonally to create a triangular roof for the tent. The length of the diagonal is:

Using the Pythagorean theorem, we can find the length of the diagonal:

a^2 + b^2 = c^2 (where a and b are the sides of the square, and c is the diagonal)

18^2 + 18^2 = c^2

324 + 324 = c^2

648 = c^2

c = √648

c ≈ 25.455

So the length of the diagonal of the fabric is approximately 25.455cm.