To find how much will Zach be paid if he sells 410 bags of peanuts, we just need to evaluate 410 on the function given that determinates the paid amount.
![P(410)=0.89\cdot410+240=364.9+240=604.9](https://img.qammunity.org/2023/formulas/mathematics/college/oabodexqh7xyfjdc5857ymshp6rwoeb9vm.png)
If Zach sells 410 bags of peanuts, he will earn $604.90 for the week.
For the second part, since we have the value he earned, we substitute this value by the function and solve for n to find how many bags of peanuts did Zach sell if he earned $827.40.
![\begin{gathered} 827.40=0.89n+240 \\ 587.4=0.89n \\ n=660 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/rff57eq5summa08a2of9xpl6n4qp4vfd5n.png)
If Zach has earned $827.40, he sold 660 bags of peanuts.