I'm confused by the confusion here. Set A - a finite set - has some members, Set B - and infinite set - is everything that is NOT in Set A
So you match a test item to Set A and if it matches it's a member of A. If it doesn't match Set A it's a member of B.
How is this not really simple?