In the three-dimensional figure shown, all edges meet at right angles. The surface area of the figure is $164 \text{ in}^{2}$ and the volume is $140\text{ in}^{3}.$ What is the value of $x,$ in inches? Express your answer as a decimal to the nearest hundredth.