Twelve inches is cut from a board. The remaining board is 18 inches long. How long was the board before it was cut? Write only the number.