The lengths of three unequal edges of a rectangular solid block are in G.P. The volume of the block is 216 cubic units and the total surface area is 312 square units. The length of the longest edge is