I got no solution! but I believe the answer is zero.
I added like terms so
X+ 2=2x+1
—————
x^2 +6 =x +6
Then
X+1=2x
————
x^2+0=x
Then
3x=-1
———
x^3
So
-3
—
-X^2 = 1
So no solution :/
But if you do the equations separate the answer is 0 because
The top equation will equal 1 and the bottom will equal zero.