A shopkeeper wants to stack 24 juice cans and 16 cold drink cans in such a way that all stacks are of the same height. If the juice cans and cold drink cans are stacked separately, what will be the maximum number of juice cans in one stack?