First of all, you need to find the GCF - the number all of these numbers have in common and which can be used to divide all of them. That number here is 3a^2y. So, we'll start from there.
3a^2y (a^4y^2 - 4ay + 2)
That is the correct answer to your polynomial.