I am a little confused on how to calculate part a, please could some one assist me on this.

The question is as follows:

A manufacturer who sells to customer located withinRkm of his mill charges a per unit price m plus a shipping charge ofsper kilometre. Thus a customer locatedxkm from the mill would pay

p:= m + s.x 0≤ x ≥ R

per unit.

Our manufacturer now wants to know the average delivered price per unit. This clearly depends on the distance of each customer from the mill and how much each customer buys.

This information is summarised by a function f(x)that gives the distribution of sales by distance. In other words,f(x)gives the number of units sold to customers located x km from the mill.

(a)Using the simple idea that the average delivered price (A) is total revenue divided by total number of units sold for customers located withinRkm of the mill, derive an expression for A in terms ofm, s, Randf(x).

(b)Calculate a numerical value for A for the case m=100, s=1, R=30 andf(x)=900 – x2