已知A={2,-1,x2-x+1},B={2y,-4,x+4},C={-1,7}且A∩B=C,求x,y的值及A∪B.