Step-by-step explanation:
Let's take any two points (1,2) and (2,4)
slope(m) = 4-2/2-1
=2
From slope equation formula
y=2x + c
To find c, we need to use (1,2) as x=1 and y=2
2=2(1)+c
c=0
Therefore the equation for the relationship between x and y is
y= 2x