Rewrite $ a^2-25b^2 $ as:
$$ \color{blue}{ a^2-25b^2 = (a)^2 - (5b)^2 } $$Now we can apply the difference of squares formula.
$$ I^2 - II^2 = (I - II)(I + II) $$After putting $ I = a $ and $ II = 5b $ , we have:
$$ a^2-25b^2 = (a)^2 - (5b)^2 = ( a-5b ) ( a+5b ) $$