Caleb was building a birdhouse. He needed 2 boards that were each 6 inches long and one board that was 18 inches long. He was then able to cut the boards into pieces to use. What was the total length of the boards that he needed?