Concept:The maximum profit is found where the derivative of the profit function is zero.Explanation:Let the profit be P(x)=10x−x2 for x bags.Differentiate with respect to x:dxdP=10−2xSet dxdP=0 for maximum profit:10−2x=02x=10x=210=5Therefore, 5 bags will give the maximum profit.Answer:C. 5 bags