A commodity has a demand function and a total cost function, where x is the number of units.
p = 100 - 0.5x, C = 50x + 37.5
a) What price yields a maximum profit? Find the maximum profit.
b) When profit is maximized, what is the average cost per unit?