Two Essays On Input Substitution And Optimal Decision Making In Crop And Livestock Production Systems