Ugh..
My my, you tried to replicate one of the oldest mind tricks. Basically, all those operations to get double the number, then you tell us to subtract our original number which then will always give us our beginning number, BUT YOU NEVER THOUGHT THAT WE MAY PICK A NUMBER OTHER THAN 36? You must understand your own process before using it :P