To see the math work by setting Y equations equal to each other, go here:
1 unknown variable equations
Enter your equations and see the math.
Also, if 2 unknowns can be solved by Substitution, Elimination, or Cramer's method, but in this case, the above method is the best since both Y coefficients equal each other.