solve AB^2 + 1^2 = 9^2 for AB