Jacob is cutting yarn for a craft project. He needs pieces of yarn that are 12 inches long, but he only has a ruler marked with centimeters. Luckily, he remembers that there are 2.54 centimeters in an inch. How many centimeters long should Jacob's pieces of yarn be?