If x varies inversely as the square of y and x = 5 when y = 10, what is the value of x when y = 2?​