The volume of a rectangular prism is length * width * height.

You're given that the width is x.

Since the prism has a square base, the length is also x.

If the box is "20 inches wider than it is tall," then the height is the width minus 20 inches, or height = x - 20.

Put it all together you get