Count the total cubes in Solid Y, then count the cubes in Solid Z.

Cubes to remove = Cubes in Y - Cubes in Z = 4.

Final Answer: 4