To find the width of Nya's garden, we can use the formula for the perimeter of a rectangle, which is given by:
\[ P = 2 \times (length + width) \]
In this case, the perimeter (P) is 24 feet, and the length (l) is 3 feet. We can substitute these values into the formula:
\[ 24 = 2 \times (3 + width) \]
Now, let's solve for the width:
-
Divide both sides by 2: \[ 12 = 3 + width \]
-
Subtract 3 from both sides: \[ width = 12 - 3 \] \[ width = 9 \]
Therefore, the width needs to be 9 feet for this to work. The answer is:
9