First we will find the dimension of A
A is equal to the sum of the measures in red

For B
as we can see in the image B=4in

Then for the volume we will divide the figure in 2 different figures
First we will calculate the volume of the rectangular prims over the line in yellow

where
l=14 in
w=4 in
h=3 in
we substitute the values

then we will calculate the volume of the prism under the line, in this case we have
l=4in
w=4in
h=3in
we substitute the values

the total volume of the composed figure is
