Whenever you have a Sum & a Product of two, the easiest way to calculate them is to use o numbers the following quadratic equation:
X² - SX + P = 0 , where S = sum and P = product
X² - 64X + 988 = 0 , solving for X will give you the result:
X₁ = [-b + √(b² - 4.a.c)]/2a And X₂ = [-b - √(b² - 4.a.c)]/2a
X₁ = [+64 + √(64² -( 4).(1)(988)]/2 and X₂ = [+64 - √(64² -( 4).(1)(988)]/2
X₁ = 38 and X₂ = 26