Emil is cutting a 72-inch-long board and a 54 in long board into shelving. He wants to make as many shelves as he can while using up all the wood. What is the longest possible length of the shelves?