A model of the optimal allocation of government expenditures. (19th November 2019)