Please help me solve the following, to include how to solve:
Eric provides cheese (H) and milk (M) to the market with the following total cost function: C(H, M) = 10 + 0.4H2 + 0.2M2. The prices of cheese and milk in the market are $2 and $5 respectively. Assume that the cheese and milk markets are perfectly competitive. What output of milk maximizes profits?