Given \( f(x) \) is continuous on \([0,8]\), continuity at \( x = 2 \) and \( x = 4 \) is implied. At \( x = 2 \), the left-hand limit equals the right-hand limit: \[ \lim_{x \to 2^-} (x^2 + ax + b) = \lim_{x \to 2^+} (3x + 2) \] This yields \( 4 + 2a + b = 6 + 2 \), simplifying to \( 2a + b = 4 \quad {(Equation 1)} \). At \( x = 4 \), the left-hand limit equals the right-hand limit: \[ \lim_{x \to 4^-} (3x + 2) = \lim_{x \to 4^+} (2ax + 5b) \] This yields \( 12 + 2 = 8a + 5b \), simplifying to \( 8a + 5b = 14 \quad {(Equation 2)} \). Solving Equations 1 and 2 simultaneously provides \( a = 3 \) and \( b = -2 \).