We have the piece-wise definition
f(x)={a∣π−x∣+1,b∣x−π∣+3,x≤5x>5
For continuity at a point, the following condition must hold:
limx→5−f(x)=f(5)=limx→5+f(x).
First we calculate the actual value of the function at x=5. Since 5≤5, the first branch is used:
f(5)=a∣π−5∣+1.
Because π≈3.14<5, the quantity π−5 is negative, so
∣π−5∣=5−π.
Substituting this into the expression for f(5), we obtain
f(5)=a(5−π)+1.
Next we find the left-hand limit as x→5−. For x<5 we again use the first branch, and the argument of the absolute value, π−x, is still negative (because x<5<π? No, π<5 so π−x<0), giving
limx→5−f(x)=limx→5−(a∣π−x∣+1)=limx→5−(a(5−π)+1)=a(5−π)+1.
Thus the left-hand limit already equals f(5), as expected.
Now we evaluate the right-hand limit. For x>5 we use the second branch: f(x)=b∣x−π∣+3. When x>5>π, the difference x−π is positive, hence
∣x−π∣=x−π.
Taking the limit as x→5+ gives
limx→5+f(x)=limx→5+(b(x−π)+3)=b(5−π)+3.
Continuity demands equality of the two one-sided limits, so we equate:
a(5−π)+1=b(5−π)+3.
Bringing all terms involving a and b to one side and constants to the other side, we write
a(5−π)−b(5−π)=3−1.
Factoring out the common factor 5−π on the left gives
(5−π)(a−b)=2.
Finally, solving for the desired difference a−b, we divide both sides by 5−π:
a−b=5−π2.
This matches Option A.
Hence, the correct answer is Option A.