I am trying to balance a chemical equation algebraically and have found the resulting system of equations:
$$\begin{align*} 3a+8b+d&=12e+4f+2g\\ a&=e\\ 4a+4c+3d&=4e+3f+g+3h\\ 2b+d&=3e+f\\ c&=h \end{align*}$$ I am able to reduce this to a system of three equations: $$\begin{align*} 8b+d&=9e+4f+2g\\ c+3d&=3f+g\\ 2b+d&=3e+f \end{align*}$$ Now, I recognize that there are more variables than there are equations, and so there is no single solution to this equation. However, I need a solution with reasonably low numbers and only integer values for all the variables ($a,b,c,d,e,f,g,h$ or, by substitution, $b,c,d,e,f,g$). A matrix solution won't work since (in standard $AX=B$ form) the only elements in $B$ are zero and therefore all the variables are zero.
As a side note, the reaction is: $$H_3PO_4 + (NH_4)_2 + MoO_4 + HNO_3 \longrightarrow (NH_4)_3PO_4 + MoO_3 + NH_4NO_3 + H_2O$$ If there is a better way to go about this (besides inspection; I have been trying that for hours) please let me know.
Any ideas?