Profit (P) = 10x − x2
Maximum profit can be achieved when the differential of profit with respect to number of bags(x) is 0
i.e. dpdx = 0
dpdx = 10 - 2x = 0
10 = 2x
Then x = 102 = 5
Answer is C