All you have to do is find the largest number that you can divide evenly between the 2 set of numbers.
In this case it would be 3 and the largest exponential terms that you can take out without causing the exponents to become negative would be x^2 and y^1.