The five card hand must beat the two card hand, and both hands must beat the dealer's two hands in order to win.
382926
The five cards have to beat the two cards.
382927
The two cards beat the five cards.