White cubes: 5
Black cubes: 18
Explanation:
If we see the image, we can observe that its a symmetrical object with a fixed amount of cubes in each row.
The top most row contains only 1 black cube.
The middle row contains 5 white cubes and
the bottom row contains 17 cubes.