Solve for x (x+2)^(x+4)=(x+2)^(x^2+3x+1)