The slope-intercept form:
![y=mx+b](https://img.qammunity.org/2019/formulas/mathematics/college/hmt7wxoetxgettvoxgzsv2e1z1jn04v2qq.png)
m - slope
b - y-intercept → (0, b)
We have the point (0, 2). Therefore we have y-intercept 2 → b = 2.
The equation of the line is: w = mz + 2.
We have next point (1, 5). Substitute the coordinates of the point to the equation of the line:
subtract 2 from both sides
![3=m\to m=3](https://img.qammunity.org/2019/formulas/mathematics/middle-school/sjetbt1mkhb1p1ejcii9lh2q3iotpn7ixz.png)
Answer: w = 3z + 2