In the equation x+y=4, what is the value of x if y=2?