Oddman answered If the cubes are congruent, putting two faces together will produce a rectangular prism.