Statement

For a product, demand is D(p)=8000(1p40)D(p)=8000\left(1-\dfrac{p}{40}\right) and the unit cost is 6 €6\ \text{€}. Find the price that maximizes the profit (p6)D(p)(p-6)\,D(p).