Linear Functions and Demand in Economics