If a ribbon is 12 cubes long and each cube is 2 cm long, what is the total length of the ribbon in centimeters?