Myra is using unit cubes to pack a solid without gaps or overlaps. It takes 24 unit cubes in all. What is the solid’s volume?