Before I start this is not a homework problem or some math I am having trouble understanding. This is just a limit of my knowledge finally winning after 2 weeks beacuse although i'm almost sure this problem is solvable and I have answers via trial an error I will not give up till I have an elegant solution. When several PHDs have no idea its time to ask people with more math in there backgrounds.

This problem has 3 stages with the last one being the true problem I have and the first two being simplifications i'm trying to use to get at the more complex final problem. I really hope this is not an impossible problem to solve other than by trial and error and I would likes the steps to get to a formula.

Solve for X given A, B

X is the entire bottom line not just the single dash

Solve for X given A,B,C

Solve for X given A,B,C,D