To find the length of \( YB \) in triangle \( YAB \), we can use the properties of similar triangles since \( \triangle XYZ \sim \triangle AYB \).
The corresponding sides of similar triangles have the same ratio. The ratio can be set up as follows:
\[ \frac{XY}{YA} = \frac{YZ}{YB} \]
Given:
- \( XY = 24 \) yards
- \( YZ = 30 \) yards
- \( YA = 8 \) yards
First, we can find the ratio using the sides \( XY \) and \( YA \):
\[ \frac{XY}{YA} = \frac{24}{8} = 3 \]
Now we can use this ratio to find \( YB \):
\[ \frac{YZ}{YB} = 3 \]
Substituting the value for \( YZ \):
\[ \frac{30}{YB} = 3 \]
Now, cross-multiply to solve for \( YB \):
\[ 30 = 3 \cdot YB \] \[ YB = \frac{30}{3} = 10 \text{ yards} \]
Therefore, the length of \( YB \) is \(\boxed{10 \text{ yards}}\).