To determine the width of the rectangular garden, we can use the formula for the perimeter of a rectangle. The perimeter (P) of a rectangle is given by the formula:
\[ P = 2(\text{length} + \text{width}) \]
Nya has 24 feet of fencing, so we can set up the equation:
\[ 24 = 2(3 + \text{width}) \]
Now, let's solve for the width:
- Divide both sides by 2:
\[ 12 = 3 + \text{width} \]
- Subtract 3 from both sides:
\[ \text{width} = 12 - 3 \]
\[ \text{width} = 9 \]
Therefore, the width needs to be 9 feet.