I need help determining if the two integers the user has chosen are the correct two integers:

Right now, two random integers (which can be the same integer) are chosen from an app data list and the two rows of buttons are generated to include those integers and some incorrect ones.

When the user presses submit, the two values currently selected update two fields of the current user. My question is how to compare the two values of those two fields with the two values that are IntA and IntB? The two sets of numbers need to match exactly, but do not have to be in the same order.