You could just minimize the function that you found for the perimeter. The minimum is attained when the derivative is zero. So calculate: \begin{equation} \frac{d}{dx} perimeter= \frac{d}{dx}(2x+\frac{8000}{x})=2-\frac{8000}{x^2}=0. \end{equation} This gives $2=\frac{8000}{x^2}$, so $4000=x^2$. We then get \begin{equation} x=\sqrt{4000}, \end{equation} since the negative solution is not an option.