So essentially both formulas are the same (just an offset of 2) and other possible result should be x=y...
When you insert y=-x-2 into 1st formula you get y(y+2) = (-x-2)(-x-2+2) = (-x-2)*-x = x^2+2x = x(x+2). This will be the second solution for your 1st formula...
Best regards, GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019