You find greatest common factor for both the numerator part and the denominator part.
First look at numerator
5x^2 10xy
What is the greatest common factor?
5 and x
So
5x (x + 2y)
[you can multiply them back and see that you get the initial equation. Also, cant simplify x+2y any further so this is correct]
Now the denominator:
X^2 +2xy
Again, find GCF.
It is only x
So,
X(x+2y)
Now what do we have?
5x(x+2y)/ x(x+2y)
You can see that x+2y is present both in numerator snd in denaminator, so you can cancel them out.
You are left with.
5x/x
You can cancel x’s too and you are left with
5