Let $E$ be a set with an associative internal law $\star$ (i. e. such that $\star : (x, y) \in E^2 \mapsto x \star y \in E$ and for all $(x, y, z) \in E^3, (x \star y) \star z = x \star (y \star z)$).
We assume that there exists $a \in E$ such that: $$ \forall y \in E, \exists x \in E : y = a \star x \star a $$
I have to show that $E$ admits a neutral element $e$, which means I have to show: $$ \exists e \in E, \forall x \in E : x \star e = e \star x = x $$
When I look for a candidate value of $e$, I don't find a way to solve this. Any help is welcome.
How can you try to find the answer?
If this were a group, then the condition holds (just take $x=a^{-1}ya^{-1}$). In that case, setting $y=a$ will give $a=axa$, which tells you that $ax=xa=e$. So perhaps one should try to see if that holds in this case: if we pick $x$ such that $a=axa$, will $ax=xa$ be the identity element?
Indeed it will.
We know that there exists $x$ such that $a=axa$.
Let $r\in E$; then there exists $z$ such that $r=aza$. Hence $(ax)r = ax(aza) = (axa)za = aza = r$. And $r(xa) = (aza)xa = az(axa) = aza = r$.
Thus, $ax$ is a left unit, and $xa$ is a right unit. But then $$\begin{align*} ax &= (ax)(xa) &&\text{(because }xa\text{ is a right unit)}\\ &= xa &&\text{(because }ax\text{ is a left unit)} \end{align*}$$ so $ax=xa$ is the two-sided unit.