x is 2
we know that the volume of a rectangular prism is equal to

which L stands for length, w for width and h for height. (the volume is equal to the product of length, width and height)
now you can make an equation for this :

the value of x is 2
good luck