Let x,y,z be the three unequal edges (x>y>z)
Given, x,y,z are in G.P.
⇒y2=xz …(1)
Volume, xyz=216 …(2)
From (1) and (2)
⇒y3=216⇒y=6
Total surface area, 2(xy+yz+zx)=252
⇒y(x+z)+xz=126
⇒6(x+z)+36=126 (∵xz=y2=36)
⇒x+z=15 and xz=36
⇒x=12, z=3
∴ Length of the longest edge is 12 cm