The right rectangular prism is filled with cubes that have a side length of 18 foot. How many cubes does it take to fill the prism?