Daniel packed 486 shortbreads into large and small boxes. He filled each large box with 16 shortbreads and each small box with 6 shortbreads. All the boxes were full and no shortbreads were left over. What was the least number of boxes used by Daniel?