let x feet be the highest of the boxes , and y be the number of boxes.
the answer is coming as 15 feet for 20 boxes and 12 boxes to reach the ceiling of 9 feet high