The volume of a small cube with a length of 2 cm =2*2*2=8 cubic centimeters.
It may have the following shape:
Length 14cm, width 2cm and height 2cm; It is composed of 14*2*2/8=7 small cubes!
Length 12cm, width 4cm and height 2cm. It consists of 12*4*2/8= 12 cubes.
Length10cm, width 6cm and height 2cm; It consists of 10*6*2/8= 15 cubes.
8 cm long, 8 cm wide and 2 cm high; It consists of 8*8*2/8= 16 small cubes.
Length10cm, width 4cm and height 4cm; It consists of 10*4*4/8=20 small cubes.
8 cm long, 6 cm wide and 4 cm high; It consists of 8*6*4/8=24 small cubes.
6 cm long, 6 cm wide and 6 cm high. It consists of 6*6*6/8=27 small cubes.