To combine 2 of the same item, you (often) need to split up a stack first: drag a stack of items from one slot to an empty slot, holding Shift down before dropping, to bring up the split stack UI, with a slider to select to select how many to move (defaulting to half).