Optimal Input Use When Inputs Affect Price and Yield