We know that
• The area is 24 square feet.
,• The length is 2 feet longer than its width.
The area of a rectangle is
[tex]A=w\times l[/tex]Where,
[tex]\begin{gathered} A=24 \\ l=w+2 \end{gathered}[/tex]Let's replace these expressions
[tex]24=w\times(w+2)[/tex]Now, we solve for w
[tex]24=w^2+2w[/tex]Let's solve this quadratic equation
[tex]w^2+2w-24=0[/tex]We have to look for two numbers whose product is 24 and whose difference is 2. Those numbers are 6 and 4.
[tex]w^2+2w-24=(w+6)(w-4)[/tex]The solutions are w = -6, and w = 4. Where the positive solution makes sense to the problem only.
If the width is 4 feet, then the length is 6 feet (because it's 2 feet longer than the width).