To find the length of the stained-glass window, we can use the given height to length ratio of 2 to 25.
Let the height be \( h \) and the length be \( l \). According to the ratio, we can express this relationship as:
\[ \frac{h}{l} = \frac{2}{25} \]
We know the height \( h \) is 24 feet. We can substitute this value into the equation:
\[ \frac{24}{l} = \frac{2}{25} \]
To solve for \( l \), we can cross-multiply:
\[ 24 \times 25 = 2 \times l \]
This gives us:
\[ 600 = 2l \]
Next, we divide both sides by 2 to isolate \( l \):
\[ l = \frac{600}{2} = 300 \]
Thus, the length of the stained-glass window is \( 300 \) feet.