3 boxes with= 39 glasses each, or 9 boxes with = 13 glasses each, or 13 boxes with = 9 glasses each, or 39 boxes with = 3 glasses each. Finally, there are two additional (improper ?) options, that are not prohibited by the condition 1 box with = 117 glasses, and 117 boxes with = 1 glass each.