Two rectangular boxes have the same volume. One box is a cube, and the other box had dimensions 8 ft by 4 ft by 12 ft. How many feet long is an edge of the cube?