The general form of a linear equation is:
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
Where m is the slope, represented by:
![m=\frac{change\text{ in x}}{\text{change in y}}](https://img.qammunity.org/2023/formulas/mathematics/college/y3j67ubwbfl1uj499i8kgw1xxfs8jqr8jw.png)
And b is the intercept with the y-axis.
We can find the slope and the intercept with the y-axis by looking at the graph we are given. We can see that in the graph the x-axis is represented with the letter w (number of weeks) and y-axis is represented with the letter p (number of pieces he has learned).
We would have a linear equation similar to this:
![p=mw+b](https://img.qammunity.org/2023/formulas/mathematics/college/upnxlqkb7mzfmj6sffpw9oze729w4dch19.png)
From looking at the graph, we can identify that the intercept with the p-axis is 30.
![b=30](https://img.qammunity.org/2023/formulas/mathematics/college/ill9bfli2k9vubnhsuems9pywde1g5ws7e.png)
And to find the slope, we can take two pair of points from the line in the graph:
![m=(p_1-p_2)/(w_1-w_2)](https://img.qammunity.org/2023/formulas/mathematics/college/ns5xyi3k47jh1p0vjab0nu2eigln07dw0z.png)
I am going to take points (30, 50) and (60,70)
![m=(50-70)/(30-60)=(2)/(3)](https://img.qammunity.org/2023/formulas/mathematics/college/79mu33s3mq5ov812rzjigwfclsya4tzyk5.png)
The equation for the relationship shown in the graph is:
![p=(2)/(3)w+30](https://img.qammunity.org/2023/formulas/mathematics/college/6ebhbkt96wad716o43wmdlzsnnv0xo1udj.png)