Solve problem 9, Pythagorean sum