If x +2y=4 and x y = 2, then determine the value of x and y.