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.
[tex]P(410)=0.89\cdot410+240=364.9+240=604.9[/tex]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.
[tex]\begin{gathered} 827.40=0.89n+240 \\ 587.4=0.89n \\ n=660 \end{gathered}[/tex]If Zach has earned $827.40, he sold 660 bags of peanuts.