Katie swims laps in a pool shaped like a rectangular prism.

The pool has a width of x feet. The length of the pool is 2 feet more than the width. The depth of the pool is 4 feet less than twice the width.

Given the pool's volume in cubic feet is 24 times its width in linear feet, what is the depth of the pool?

Enter your answer in the box.