Mentalism and Mathematics

Mathematics is an exact science—so there's zero risk of messing up this clever little magic trick!
Reading Minds
Ask a spectator to think of any random number and keep it to themselves.
Next, have them multiply their number by 2.
Then ask them to add a number X of your choice to their result.
Now have the spectator divide their new total by 2, and then subtract the original number they chose at the start.
At this point, you can immediately reveal the final number they landed on!
The Secret
To know their final number, all you have to do is divide your chosen number X by 2.
Example
Suppose the spectator chooses the number 10.
You ask them to add X = 6.
- 10 × 2 = 20
- 20 + 6 = 26
- 26 ÷ 2 = 13
- 13 − 10 = 3
The spectator ends up with the number 3 in mind.
To find it, you simply compute X ÷ 2, which is 6 ÷ 2 = 3.