Volume= length*width* height
dont solve it all together break it into pieces
break the shape into 4 easy way to solve volume for each
starting from the far right the last 2 cubes solve its volume
its voulume=1*2*1= 2
the next left four cubes
V= 2*1*2= 4
next group of cubes the 6 left cubes
V=2*2*4=16
and finally the two cubes on top
V=2*1*1=2
add all volumes
2+4+16+2=24