Look at the word BANANA. It has six letters, but if someone asks which letters it uses, the answer is just B, A and N. That answer is a set: {B,A,N}. It doesn't matter that A shows up three times or that B comes first. Writing {N,A,B} or {A,A,B,N,N} describes the same set, because the only thing a set records is whether each object is in it.
A set also needs a clear rule for membership. 'The even numbers between 1 and 9' is a set, {2,4,6,8}: for any number you can say yes or no. 'Big numbers' is not a set, because nobody can say whether 500 counts. You can describe a set by listing, {2,4,6,8}, or by a rule in set-builder notation, {x:x is even and 1<x<9}. Both name the same four numbers.
Compare a locker code, 3-2-3. Swap the digits to 2-3-3 and the lock stays shut, and the repeated 3 is part of the code. When order or repeats carry meaning, you have a list (a sequence), not a set. A shopping receipt that shows 'apple, apple, banana' is not a set either: the store charges you for two apples, so the number of copies matters. A collection that keeps count like that is called a multiset.
Think of it like this. A set works like a party guest list: each name is either on it or not. Writing a name twice doesn't invite that guest twice, and putting the list in alphabetical order changes nothing. Unlike a printed list, though, a set has no first or last entry at all.
Core idea. A set is a collection where duplicates collapse to one and rearranging changes nothing.