The first condition is for the perimeter of the equation so:

Now the secon condition is that the sum of two sides should be:

so the negative option and 0 don't make sence dor a distance, then we try with the value of b=0.5
So in the first equation will be:

So the condition:

this is false, so the solution is