When Can You Use Pythagorean Theorem