About the second trick.
It is not magic, it is algebra.
assume the number to be x. square it, add ten times of the original number and 25 to it. You will get. X^2+10X+25. Now by factorization (spilting the middle term), v can get (X+5)(X+5). now square rooting it. v get (X+5). now. subtract X from it. v get 5.
Thats y wat ever number v take, v will end up with 5.
try this, Pick a number, square it, add twelve times the original number, add 36, take the square root (rounding to the nearest whole number), subtract your original number. you will end up with 6.
Next time when posting some tricks please dont mention the word "magic",
Regards
Rangarajan