The solid rectangular prism shown below was built by alternating congruent black cubes and white cubes such that 2 cubes of the same color have at most 1 edge touching. What is the total number of white cubes that were used to build the prism?