To find the width of the garden, we need to use the formula for the perimeter of a rectangle:
Perimeter = 2 * (Length + Width)
Since the length is given as 3 feet and the perimeter is given as 24 feet, we can substitute these values into the formula:
24 = 2 * (3 + Width)
Divide both sides of the equation by 2:
12 = 3 + Width
Subtract 3 from both sides:
9 = Width
Therefore, the width of the garden needs to be 9 feet for it to work.