What are the two variations of the Pythagorean theorem to use? (short and long side)