A company sells men’s basketballs with a circumference of 29.5 in. They also sell youth basketballs with a circumference of 27.75 in. The company has cube-shaped packaging boxes with edges that are either 8 in., 9 in., or 10 in. long. What is the smallest box in which each ball can be packaged?