Given the square of a + the square of B + 6a-10b + 34 = 0, find a + B

Given the square of a + the square of B + 6a-10b + 34 = 0, find a + B

That is, (A & sup2; + 6A + 9) + (Y & sup2; - 10B + 25) = 0
(a+3)²+(b-5)²=0
If one is greater than 0, the other is less than 0
So both are equal to zero
So a + 3 = 0, B-5 = 0
a=-3,b=5
So a + B = 2