A carpenter has boards of lengths 27, 36, and 54 inches that must be cut into smaller boards of equal length, with no scrap wood left over. What is the longest length of boards he can cut? A.9 inches B.3 inches C.6 inches D.12 inches