title: Find what 2 numbers add to something and multiply to something
body: <p>Hey so I'm making a factoring program and I'm wondering if anyone can give me any ideas on an efficient way to find what two numbers multiple to a specified number, and also add to a specified number.</p>
  
  <p>for example I may have</p>
  
  <p>(a)(b) = 6</p>
  
  <p>a + b = 5</p>
  
  <p>So essentially i just need a way to find the a and b values. In this case they would be 2 and 3. </p>
  
  <p>Can anyone give me any ideas on where to start? Negative numbers must also be considered for use.</p>