Step-by-step explanation:
Calculate the volume of each rectangular prism wiht the formula:
Where:
l: the length.
w: the width
h: the height.
Then, the volume of each one is:
Therefore, the volume of the figure is obtained by adding the volumes calculated above: