Write the given equation in two parts:
∣x2−8x+15∣−2x+7=0
The quadratic inside the absolute value factors as
x2−8x+15=(x−5)(x−3)
Its roots are x=3 and x=5, and the parabola opens upward, so
x2−8x+15<0 for 3<x<5,x2−8x+15≥0 for x≤3 or x≥5
Therefore split the equation into two cases.
Case 1: x≤3 or x≥5
Here ∣x2−8x+15∣=x2−8x+15, so
x2−8x+15−2x+7=0⇒x2−10x+22=0
Using the quadratic formula,
x=210±100−88=210±23=5±3
Check which roots satisfy the domain of this case:
5+3≈6.732≥5(acceptable)
5−3≈3.268(3<3.268<5,reject)
Thus Case 1 contributes the root x=5+3.
Case 2: 3<x<5
Now ∣x2−8x+15∣=−(x2−8x+15), so
−(x2−8x+15)−2x+7=0⇒−x2+8x−15−2x+7=0⇒−x2+6x−8=0⇒x2−6x+8=0
Again apply the quadratic formula:
x=26±36−32=26±2=3±1
So the possible solutions are x=4 and x=2.
Only x=4 lies in the interval 3<x<5, hence it is the sole root from Case 2.
The complete set of roots is {4,5+3}.
Sum of all roots:
4+(5+3)=9+3
Therefore the required sum is 9+3, which matches Option B.