5-x-x=-1

will someone please tell me how do do this problem?

5-x-x=-1

-2x = -5 + (-1)
-2x = -6
x = 3