The Babylonian Theorem: The Mathematical Journey to Pythagoras and Euclid