Let $U=(x,y,z)\in \mathbb{Z}^3$ and $a(U),b(U),c(U),d(U),e(U),f(U),g,h$ be integers.
Now consider the system of equations: $$x[a(U)]+y[b(U)]+z[c(U)]=g$$ $$x[d(U)]+y[e(U)]+z[f(U)]=h$$
What conditions must this system satisfy so that both equations are equivalent?
My guess is : $$a(U)e(U)-b(U)d(U)=0$$ $$b(U)f(U)-e(U)c(U)=0$$ $$a(U)f(U)-d(U)c(U)=0$$
Am I wrong?