If y varies inversely as x and y=2 when x =25 find x when y=40.