Can I construct a linear system so that it results in a moving average?
The function you are trying to solve is equivalent to
$\frac{b}{3 \cdot a} + \frac{a}{3 \cdot b}=\frac{1}{3}$

It is also
$a^2-ab+b^2=0$

but this function does not have a real number solution.