public static double DeterminantY(Equation first, Equation second) => first.A * second.C - second.A * first.C;
public static double DeterminatX(Equation first, Equation second) => first.C * second.B - second.C * first.B;