Price-demand and cost functions