Terrell takes a rectangular piece of fabric and makes a diagonal cut from one corner to the opposite corner. The cut he makes is 40 inches long and the width of the fabric is 32 inches. What is the fabric's length?​