Count cubes in Solid P, then count cubes in Solid Q.

Cubes to remove = Cubes in P - Cubes in Q = 5.

Final Answer: 5