A machine at a lumberyard cuts long boards into boards of a shorter length. The boards that are fed into the machine come in lengths of 48 feet and 36 feet. What is the longest length of board the machine could cut so that no wood is wasted on either the 36-foot or 48-foot boards?