A cube has a volume of 216 cubic inches. What is the length of each edge of the cube?