The formula for calculate the area of a rectangle is:

Where "l" is the length and "w" is the width,
According to the information given in the exercise:

Then, you can set up the following equation:

Simplify it:

Make it equal to zero:

Use the Quadratic formula to find the value of "w":
![w=\frac{-b\pm\sqrt[]{b^2-4ac}}{2a}](https://img.qammunity.org/2023/formulas/mathematics/college/ndvms7siv7ycdjk0cqqv7zde050e4oebhc.png)
In this case:

Substituting values and evaluating, you get:
![\begin{gathered} w=\frac{-5\pm\sqrt[]{5^2^{}-4(2)(-42)}}{2(2)} \\ \\ w_1=3.5 \\ w_2=-6 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/n7eum8epykf78sfpfwymoan588l3ocwu5z.png)
Choose the positive value. Then:

Substitute the width into the equation

And then evaluate, in order to find the length of the rectangle. This is:

The answer is:
