To find the change of a function over an interval, we use the following formula.
[tex]\frac{g(b)-g(a)}{b-a}[/tex]Where (a, g(a)) and (b, g(b)).
So, first, we have to evaluate the function for x = 2 and x = 4.
[tex]\begin{gathered} g(2)=5^2=25 \\ g(4)=5^4=625 \end{gathered}[/tex]Then, we use the formula.
[tex]\frac{625-25}{4-2}=\frac{600}{2}=300[/tex]