The following statements are part of a proof involving cartesian products, specifically involving this theorem:
$A \times B = B \times A \iff$ either $A = \emptyset$, $B= \emptyset$, or $A = B$
Let $x$ be an arbitrary element of $A$. Since $B \neq \emptyset$ we can choose some $y$ in $B$ and $(x, y) \in A \times B = B \times A$, and so $x \in B$. Thus, $A \subseteq B$
What I am not exactly understanding is why it follows immediately that $x \in B$ in the above statement?
You have assumed that $A \times B = B \times A$, so in particular $A \times B \subset B \times A$. This means all members of $A \times B$ are also members of $B \times A$.
Therefore, since $(x,y) \in A \times B$, $(x,y) \in B \times A$ as well.
e: To be more specific, the snippet you have posted appears to me to be part of a proof where you are proving the "$\implies$" part of the theorem, beginning by assuming that the products are equal, and then proving that the right side is true. At this stage of the overall proof, I am also inferring that the cases where either $A$ or $B$ is empty have been handled, and we now are showing that if they both are nonempty we can conclude they are equal.