Marshall has two pieces of string, one 12 feet long and the other 18 feet long. For an art project, he wants to cut them up to produce many pieces of string that are all of the same length, with no string left over. What is the greatest length, in feet, that he can make them?