title: How to solve a math equation in a programming language?
body: <p>I need help to solve this formula <code>((n * 2) + 10) / (n + 1) = 3</code>, preferably in PHP. (The numbers 2, 10 and 3 should be variables that can be changed.)</p>
  
  <p>I'm able to solve this equation on paper quite easily. However, when I try to implement this in PHP, I'm not sure where to start. I've done several Google queries and searches on here and nothing seems to help. I'm missing the proper approach to deal with this problem.</p>
  
  <p>Any tips and pointers would be great, and if you provide the exact code, please explain how you got to this result.</p>