Sorry for the late replay, I was expecting some of the students to help you out(since you pointed the question to them).
Anyway, the formula is much more simple than you think.
These numbers are coming from basic calculations. The question you need to ask is:
How much do I need to enter on the other direction in order to cover the loss. So you will have only one X value in the equation.
In the new course, Cryptocurrency Never losing formula – Ethereum trading robot, I explain it step by step, and it is much clearer there I do believe.
However, let me know specific questions so I can assist you.