The number of small cubes =3×3×3=27
The number of small black cubes =5×2+4= 14.
The number of small white cubes =4×2+5= 13.
therefore
Small white cubes account for 13/27 of the total.
Small black cubes account for 14/27 of the total.