Since \( f(x) \) is continuous on \([0,8]\), it must be continuous at \( x = 2 \) and \( x = 4 \). At \( x = 2 \), \[ \lim_{x \to 2^-} f(x) = \lim_{x \to 2^+} f(x) \] \[ \lim_{x \to 2^-} (x^2 + ax + b) = \lim_{x \to 2^+} (3x + 2) \] \[ 4 + 2a + b = 3(2) + 2 \] \[ 2a + b = 4 \quad {(Equation 1)} \] At \( x = 4 \), \[ \lim_{x \to 4^-} f(x) = \lim_{x \to 4^+} f(x) \] \[ \lim_{x \to 4^-} (3x + 2) = \lim_{x \to 4^+} (2ax + 5b) \] \[ 3(4) + 2 = 2a(4) + 5b \] \[ 8a + 5b = 14 \quad {(Equation 2)} \] Solving Equations 1 and 2, we get: \[ a = 3, \quad b = -2 \]