Dimensions of the rectangular prism:
x−1,2x+1,3x−1
Volume of a rectangular prism
= Length × Width × Height
Volume of a rectangular prism
= (x−1) × (2x+1) × (3x−1)
Amount of water inside the prism = Volume of the prism
Amount of water inside the prism
=6x3−5x2−2x+1
Length of the side of the cube =x+1
Volume of the cube =Side3
Volume of the cube =(x+1)3
Volume of the cube =x3+3x2+3x+1
Amount of water remaining
=Volume of prism−Volume of cube
Amount of water remaining
=(6x3−5x2−2x+1)−(x3+3x2+3x+1)
Amount of water remaining
=6x3−x3−5x2−3x2−2x−3x
Amount of water remaining
=5x3−8x2−5x cu ft