its bascially whoever has the higest three pair you had three 5's they had three 2's so you win, don't matter what the other two cards are.