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