设A={2,-1,x^2-x+1} ,B={2y,-4,x+4},C={-1,7},且A∩B=C,求x,y的值