What is 2 = x+1 ?

It is an equation.

If you want to know what x is, subtract 1 from each side of the equation.