We can calculate the area of a rectangle by means of the following formula:

Where b is the length of the base and h is the length of the heigh of the rectangle, by replacing 3x+1 for b and x for h, we get:

By distributing the product we can get rid of the parenthesis:

By replacing the value of the area 30 units^2 we get:

We can solve this equation by means of the quadratic equation, like this:
![\begin{gathered} x=\frac{-1\pm\sqrt[]{1^2-4*3*(-30)}}{2*3} \\ x=(-1\pm√(361))/(6) \\ x=(-1\pm19)/(6) \\ x1=(18)/(6)=(9)/(3)=3 \\ x2=(-20)/(6)=-(10)/(3) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/gcjlzjyp64gjp5o6k6a7z6zx1627cmdpkn.png)
As you can see, we got two solutions, x equals 3 and x equals -10/3, but since x represents the value of the height of the pool and length can only be represented with positive numbers, the correct answer is x equals 3