The second power of 5A multiplied by (X-Y) + 10A multiplied by (Y-X)

The second power of 5A multiplied by (X-Y) + 10A multiplied by (Y-X)

5a^2(x--y)+10a(y--x)=5a^2(x--y)--10a(x--y)
=5a(x--y)(a--2).