Concept:For a function to be continuous at x=1, the left-hand limit, the function value, and the right-hand limit must all be equal.Explanation:Continuity at x=1 requires:x→1−limf(x)=f(1)=x→1+limf(x)First, find f(1).For x=1, the definition gives f(x)=3x−1.So,f(1)=3(1)−1=2Now compute the left-hand limit.For x<1, we have f(x)=ax+7.Thus,x→1−limf(x)=a(1)+7=a+7Setting this equal to f(1):a+7=2a=−5Next, compute the right-hand limit.For x>1, we have f(x)=x+3b.So,x→1+limf(x)=1+3b=4bSetting this equal to f(1):4b=2b=8Therefore, the required values are a=−5 and b=8.Answer:a=−5, b=8Hence, the correct option is Option D.