We know that $f$ has finite variation on $[a,b]$.
Prove that $$g(x)= \begin{cases} 0, & x=a\\[8pt] \frac{1}{x-a} \int _{a} ^x f(t) \, dt , & x \in (a,b] \end{cases} $$
has finite variation.
I would really appreciate all your help, because I'm just starting my course in integral calculus.
Thank you.
The function $g$ is absolutely continuous on any interval $[c,b]$ with $a < c < b$. Try to use this fact along with a bound on $|g(c) - g(a)| = |g(c)|$.