Two cube-shaped boxes are stacked one above the other. The volume of one box is 512 cubic meters, and the volume of the other box is 216 cubic meters. The total height of the stacked boxes is meters.