Decompose the square of factor 5A by (X-Y) plus 10A (Y-X)

Decompose the square of factor 5A by (X-Y) plus 10A (Y-X)

5a²(x-y)+10a(y-x)
=(x-y)(5a²-10a)
=5a(x-y)(a-2)