You're referring to this: Fibonacci Retracement
http://www.investopedia.com/ask/answers/05/FibonacciRetracement.asp
derived from this: Fibonacci Ratio
http://en.wikipedia.org/wiki/Fibonacci_ratio
And if you really want to get into it; it's all based upon this: The Fibonacci Sequence...