Provide me an example about how to use the pythagorean theorem