Answer:
![y = (1)/(10)x + 6](https://img.qammunity.org/2022/formulas/mathematics/college/r0spfc4lu43wnvd2qkecdunaj2fi09nsig.png)
500 cups cost $56
Explanation:
Given
![x = cups](https://img.qammunity.org/2022/formulas/mathematics/college/ec6r901rltt5gxrgjayh7kyjis4d00hqtx.png)
![y = cost](https://img.qammunity.org/2022/formulas/mathematics/college/ot60d3jp3pe9yru0sqcpibx7qbn5l3dud2.png)
![(x_1,y_1) = (150,21)](https://img.qammunity.org/2022/formulas/mathematics/college/4or10g7hi81voxy1cknjvleds3wt1ok6sl.png)
![(x_2,y_2) = (300,36)](https://img.qammunity.org/2022/formulas/mathematics/college/qgbmfrxlxk2akrpwm9qryhjbqla0nt6yq1.png)
Solving (a): Linear Equation
First, we calculate the slope (m)
![m = (y_2 - y_1)/(x_2 - x_1)](https://img.qammunity.org/2022/formulas/mathematics/college/i1pa2mybgkt3dkd7j6tklhm5t9tvmo4g5v.png)
Substitute right values
![m = (36 - 21)/(300- 150)](https://img.qammunity.org/2022/formulas/mathematics/college/56vnf4mvosxus4amhbtrtgds203tvcz9sw.png)
![m = (15)/(150)](https://img.qammunity.org/2022/formulas/mathematics/college/73b23zgcvq9eg7moil3gje7ul3kjk3xef0.png)
![m = (1)/(10)](https://img.qammunity.org/2022/formulas/mathematics/college/lrilbwfq3fc01h72yc4ytqubbubugu79jk.png)
The equation is then calculated as:
![y = m(x - x_1) + y_1](https://img.qammunity.org/2022/formulas/mathematics/college/q3fz2j2j3y666k3ykrf0me9rxopd59ekuj.png)
Where
![(x_1,y_1) = (150,21)](https://img.qammunity.org/2022/formulas/mathematics/college/4or10g7hi81voxy1cknjvleds3wt1ok6sl.png)
![m = (1)/(10)](https://img.qammunity.org/2022/formulas/mathematics/college/lrilbwfq3fc01h72yc4ytqubbubugu79jk.png)
This gives:
![y = (1)/(10)(x - 150) + 21](https://img.qammunity.org/2022/formulas/mathematics/college/pzyde7e19as4wocm63nlrp2lbqs4nkszj0.png)
Open bracket
![y = (1)/(10)x - (1)/(10)*150 + 21](https://img.qammunity.org/2022/formulas/mathematics/college/g53dkiqe1p9cm0a0q1a2x5e493ebw3ji87.png)
![y = (1)/(10)x - 15 + 21](https://img.qammunity.org/2022/formulas/mathematics/college/zfy7x1y917cr4rep0zrwjnnjvkkzdu5xoi.png)
![y = (1)/(10)x + 6](https://img.qammunity.org/2022/formulas/mathematics/college/r0spfc4lu43wnvd2qkecdunaj2fi09nsig.png)
Solving (b): Cups of coffees for $56
Substitute 56 for y in
![y = (1)/(10)x + 6](https://img.qammunity.org/2022/formulas/mathematics/college/r0spfc4lu43wnvd2qkecdunaj2fi09nsig.png)
![56 = (1)/(10)x + 6](https://img.qammunity.org/2022/formulas/mathematics/college/rjl49x3vt6cd495wyyq9gprs44qgj23df1.png)
Subtract 6 from both sides
![-6+56 = (1)/(10)x + 6-6](https://img.qammunity.org/2022/formulas/mathematics/college/rcs6yjh85j0xo0pcawvmo3lwiyvc6tdkah.png)
![50 = (1)/(10)x](https://img.qammunity.org/2022/formulas/mathematics/college/a72n0nwkl5qfc98o3y5ew36hspk7g0qj19.png)
Multiply both sides by 10
![10 * 50 = (1)/(10)x * 10](https://img.qammunity.org/2022/formulas/mathematics/college/x443sodaqprzvd0octt78r027p6dsimi1m.png)
![10 * 50 = x](https://img.qammunity.org/2022/formulas/mathematics/college/2ocls0iqj8pu4qd07nt38n4xkb2k77gtde.png)
![500 = x](https://img.qammunity.org/2022/formulas/mathematics/college/npzeziup5ziyxg2hjceerphs9x5c42dxcw.png)
![x = 500](https://img.qammunity.org/2022/formulas/mathematics/college/vgiaiiisy8mylfh1jitaamzva3nkkkjpfo.png)
Hence: 500 cups cost $56