title: Solving two algebraic equations in java
body: <p>I have two equations that need to be evaluated in java <br></p>
  
  <pre><code>y=(x+1)*2-3
  y=5
  </code></pre>
  
  <p>These equations are dynamic in nature</p>
  
  <pre><code>y= x*8x6-5*5
  y= 3
  </code></pre>
  
  <p><code>y</code> is known in these equations, I need to determine the value of <code>x</code></p>
  
  <p>What is the best and easy way to write a program in java?</p>