A box in the shape of a rectangular prism has a volume of 96 cubic feet. The box has a length of (x+8) feet, a width of x feet, and a height of (x-2) feet. Find the dimensions of the box.