Y is partly constant and partly varies directly as x.when x=1,y=2 and when x=2,y=3.find the value of y when x=4.

The value of y when x=4 is 6.