How is The Pythagorean Theroem and the Distance formula the same?