If a line has a slope of 2. It passes through the points (1,2) and (3,y). What is the value of y?