A box is the shape of a right rectangular prism. The box has a square base that is 6 inches wide. The box has a volume of 864 cubic inches. What is the length of one of the lateral edges?