why does the pythagorean theorem work
There is a mathematical proof giving the reason why it works but it is too advanced for you to undestand.