Answer
The volumes are the same.
Work Step by Step
The volumes remain the same because multiplication is commutative. This means the numbers can be multiplied in any order with the same product. This can be proven by solving for the volumes with the different measurements.
Volume = length x width x height
First figure measurements:
Base = 2m x 3m
Height = 4m
V = 2m x 3m x 4m = 24 m$^{2}$
Second figure measurements:
Base = 3m x 4m
height = 2m
V = 3m x 4m x 2m = 24 m$^{2}$