It takes 154 cubes with side lengths of 12 inch to fill a rectangular prism.

What is the volume of the rectangular prism? Show your work or justify your solution.