Let \(R=R(b)\) be the revenue earned when producing \(b\) barrels of milk, under that assumption that all barrels will be purchased. We have
\begin{equation*}
R(b)=\underset{\text{amt. sold}}{b}\cdot \underset{\text{price}}{p(b)}=\frac{20000b}{100+b}\text{.}
\end{equation*}
Lastly, since profit is \(P=P(b)\) is defined as revenue minus cost, we have
\begin{equation*}
P(b)=R(b)-C(b)
\end{equation*}
and thus marginal profit is
\begin{align*}
\frac{dP}{db} \amp = R'(b)-C'(b)\\
\amp = \frac{(20000b)'(100+b)-20000b(100+b)'}{(100+b)^2}-(10-\frac{q}{50}+\frac{3q^2}{250}) \amp (\text{quot. rule}, C'(b))\\
\amp = \frac{2000000}{(100+b)^2}-(10-\frac{q}{50}+\frac{3q^2}{250})\text{.}
\end{align*}
The marginal profit at a production level of 100 barrels is thus
\begin{align*}
P'(100) \amp = \frac{2\times 10^6}{4\times 10^4}-C'(100)\\
\amp = 50-128\\
\amp = -78 \text{ dollars per barrel}\text{.}
\end{align*}
This tells us that increasing the production from 100 barrels results in the farmer’s profit decreasing at a rate of 78 dollars per barrel. What’s going on here is that although revenue will increase by increasing production, the rate at which it increases is less than the rate at which cost increases.