It might help to make some cubes out of modelling clay or plasticene and to cut them in the ways drawn.
Can you picture what shape the pieces will be when each cube is cut?