Caleb was building a birchhouse. He needed 2 boards that were each 6 inches long and one board that was 18 inches long. What was the total lenghth of the boards that he needed.