Determine all functions $f: \mathbb{R} \times \mathbb{R} \to \mathbb{R}$ such that
\[ f(x,y) + f(y,z) + f(z,x) = \max \{ x,y,z \} - \min \{ x,y,z \} \] for every $x,y,z \in \mathbb{R}$
and there exists some real $a$ such that $f(x,a) = f(a,x) $ for every $x \in \mathbb{R}$.