I'm ytrying to solve the following for $x$ as an expression of the other variable (as few as possible)
$$a+bx+(n-1)de=0$$ $$f+gx+(n-1)he=0$$
I'm not sure how to solve this.
I tried equating both, but I cant get rid of $(n-1)$ or $e$. $$ a+bx+(n-1)de=f+gx+(n-1)he $$
I think the answer is $$x=\frac{fh-ad}{bd-gh}$$
Is this correct?
If your other variable is $$y=(n-1)e$$ as it seems to be from your own attempts and the following quote:
then the solution for $x$ is: $$x=\frac{d f-a h}{b h-d g}$$
And the other variable is:
$$y=(n-1)e=\frac{a g-b f}{b h-d g}$$