Answer:
y = x + 2
Explanation:
The slope-intercept form of an equation of a line:
![y=mx+b](https://img.qammunity.org/2020/formulas/mathematics/high-school/8nudzfk4b5l0arb9iixag2w8am6zn99zlr.png)
m - slope
b - y-intercept → (0, b)
The formula of a slope:
![m=(y_2-y_1)/(x_2-x_1)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/fc06wy5n2hf2a0hmyba6df4ibmxk1cn53a.png)
============================================
We have the points (0, 2) → b = 2 and (4, 6).
Calculate the slope:
![m=(6-2)/(4-0)=(4)/(4)=1](https://img.qammunity.org/2020/formulas/mathematics/middle-school/1qkjfecxz1kzrjm9fdkzvf2rx3qe60gr4b.png)
Substitute the values of the slope and the y-intercept to the equation of a line:
![y=1x+2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/2619fb33yg728eym5xzi9kptabrs8ihg6g.png)