Two times of a number minus 3 equals to the number plus 5. What's the number? How to formulate

Two times of a number minus 3 equals to the number plus 5. What's the number? How to formulate

Let this number be X,
2x-3=x+5
x=5+3
=8