Use Pythagorean theorem to find right triangle side lengths