There may be more than one sample space that is appropriate for an experiment. We may wish to record only how many people get off at each floor. Then the sample space consists of all sextuples $(x_1,x_2,x_3,x_4,x_5,x_6)$ of non-negative integers that add up to $6$, the total number of people.
This would not be my first choice for a sample space. I would call the people U, V, W, X, Y, Z, and record for each person the floor she intends to get off at. The record would be in alphabetical order. So for example $(3,6,3,1,5,4)$ means that U is getting off on floor $3$, V is getting off on $6$, W is getting off on $3$, and so on.
So this sample space is the set of all sextuples $(y_1,y_2,y_3,y_4,y_5,y_6)$, where each $y_i$ is an integer between $1$ and $6$.
We will use this as the sample space from now on.
In terms of this sample space, the event $A$ consists of the ordered sextuples $(1,1,1,1,1,1)$, $(2,2,2,2,2,2)$, and so on up to $(6,6,6,6,6,6)$. You may be expected to write this in set notation.
The event $B$ is, in this sample space, more complicated. It consists of all sextuples where five of the entries are $2$ and the sixth is any of $1,3,4,5,6$. One example of a sextuple in the sample space is $(2,5,2,2,2,2)$. There are $30$ in all.
For $A\cup B$, just list all the elements of $A$ together with all the elements of $B$.
For $A\cap B$, notice that $A$ and $B$ are disjoint (they have no element in common). Thus $A\cap B=\emptyset$, the empty set.