When determining the rate law from experimental data, compare how the rate changes with concentration to determine the order of reaction with respect to each reactant.
From the given data for the reaction, we can see that as the concentration of X increases, the rate of the reaction changes significantly. The rate depends more on X than on Y, and the best fit to the data suggests that the rate is proportional to the square of the concentration of X. Hence, the correct rate expression is rate=k[X]2.