We have f(x)={x+a,∣x−4∣,x≤0x>0 and g(x)={x+1,(x−4)2+b,x<0x≥0
To ensure continuity at x=0, for f the left limit is 0+a=a and the right limit is ∣0−4∣=4, so a=4. Substituting this into g, the left limit is 0+1=1 and the right value is (0−4)2+b=16+b, giving b=−15.
Next, since 2>0, we have f(2)=∣2−4∣=2 and then g(f(2))=g(2)=(2−4)2+(−15)=4−15=−11 (since 2≥0).
Then, for (f∘g)(−2), we compute g(−2)=−2+1=−1 (since −2<0) and f(g(−2))=f(−1)=−1+4=3 (since −1≤0).
From this, (g∘f)(2)+(f∘g)(−2)=−11+3=−8.
Therefore, the correct answer is Option D: −8.