A cube has a net with area 216 in2. How long is an edge of the cube?