Question
Find the values of a and b such that the function defined by
f(x) = $\begin{cases}5, & \text { if } x \leq 2 \\ a x+b, & \text { if } 2<x<10 \\ 21, & \text { if } x \geq 10\end{cases}$ is a continuous function.
f(x) = $\begin{cases}5, & \text { if } x \leq 2 \\ a x+b, & \text { if } 2<x<10 \\ 21, & \text { if } x \geq 10\end{cases}$ is a continuous function.