Let $S$ be a set and let $*$ be a binary operation on $S$ satisfying the laws
\begin{align} x*(x*y) &= y \quad \text{for all } x, y \text{ in } S,\\ (y*x)*x &= y \quad \text{for all } x, y \text{ in } S \end{align} Show that $*$ is commutative but not necessarily associative.
I was thinking of letting $x = (a *b)$, $y = b*a$ for each relation and then flipping the values of $x$ and $y$ but this doesn't seem to get me anywhere. Some hints would be greatly appreciated!
$$ x \equiv z \star y\\ (z \star y) \star ((z \star y) \star y) = y\\ (z \star y) \star z = y\\ y \equiv z \star w\\ (z \star (z \star w)) \star z = z \star w\\ w \star z = z \star w\\ $$