For the rectangular prism, the length is 312 inches, and the height is 512 inches.

What is the width? Show your work or justify your solution.