Let $x-y=U, z-y=V$. Then
$$A\sin U+B \sin V=C$$
$$A\cos U+B \cos V=D$$
Square both equations:
\begin{align}
A^2\sin^2 U + B^2 \sin^2 V + 2 AB \sin U \sin V&=C^2\\
A^2\cos^2 U + B^2 \cos^2 V + 2AB \cos U \cos V &=D^2
\end{align}
Add to get
\begin{align}
A^2(\sin^2 U + \cos^2 U) + B^2 (\sin^2 V + cos^2 V) + 2 AB (\sin U \sin V + \cos U \cos V) &=C^2 + D^2\\
A^2 + B^2 + 2 AB (\sin U \sin V + \cos U \cos V) &=C^2 + D^2\\
2 AB (\sin U \sin V + \cos U \cos V) &=C^2 + D^2 - A^2 - B^2\\
\sin U \sin V + \cos U \cos V &=\frac{C^2 + D^2 - A^2 - B^2}{2AB}\\
\cos (U-V) &=\frac{C^2 + D^2 - A^2 - B^2}{2AB}\\
(U-V) &=\cos^{-1} \frac{C^2 + D^2 - A^2 - B^2}{2AB}\\
\end{align}
Since $U - V = (x-y) - (z-y) = x - z$, this gives you
\begin{align}
z &=x - \cos^{-1} \frac{C^2 + D^2 - A^2 - B^2}{2AB}.
\end{align}
Now you can plug in $z$ and $x$ in either of your first two equations to find $y$.
Of course, this all depends on $AB \ne 0$.
If either $A$ or $B$ is zero, then you can solve the first equation directly to find $U$ or $V$, and work from there.