Solving $ \{ \varnothing, \{ x\} \} = \{ y, \{ \varnothing \} \}$.
Well, you have to look at several cases:
Since $\varnothing$ is a member of the left-hand side, then it is also a member of the right-hand side.
Since the members of the right-hand side are $y$ and $\left\{\varnothing\right\}$, then $\varnothing=\left\{\varnothing\right\}$ or $\varnothing=y$.
However, $\varnothing\in\left\{\varnothing\right\}$, whereas $\varnothing\not\in\varnothing$. Therefore $\varnothing\neq\left\{\varnothing\right\}$.
By 2. and 3., the only possibility is $\varnothing=y$.
Now do a similar analysis for $\left\{x\right\}$, knowing that $y=\varnothing$, and conclude that $x=\varnothing$.
Two sets are equal if they have exactly the same elements.
so, $\emptyset$ must be in $\{y,\{\emptyset\}\}$
but, it is known that $\emptyset \ne \{\emptyset\}$
thus
$$\emptyset=y$$
and $$\{x\}=\{\emptyset\}$$ which means that $$x=\emptyset=y$$