The volume of any cube can be calculated as:
Where a is the width, height, and length of the cube.
So, if the volume is 125 ft cubed, the value of a can be calculated as:
Therefore, the width is 5, height is 5 and the length of the square chest is 5.