As you can see the top - view is a rectangle of 2 by 9 dimensions. Respectively the right - side view is a rectangle of 2 by 4 dimensions. The common dimension among both rectangles would be 2, making this rectangular prism have dimensions 2 by 4 by 9.
Therefore the rectangular prism will have a volume of 2 4 9