Definitely it's a quadratic equation.
{ x+y=24
x*y=140
At the intersection of the X and H axis at your graph there will be a solution.