What is the length of an edge of a cube whose total surface area is X cm\(^2\) and whose volume is \(\frac{X}{2}\)cm\(^3\)?